-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mcc cdh5.10.1 #1
base: master
Are you sure you want to change the base?
Mcc cdh5.10.1 #1
Conversation
Please check the build results. One of the tests fails. Also, your pull requests includes the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. Please try to use a proper formatting.
pom.xml
Outdated
@@ -22,77 +22,77 @@ | |||
<dependency> | |||
<groupId>org.apache.hadoop</groupId> | |||
<artifactId>hadoop-common</artifactId> | |||
<version>2.5.0-cdh5.3.0</version> | |||
<version>2.6.0-cdh5.10.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put this into a variable. This makes later changes easier.
pom.xml
Outdated
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-common</artifactId> | ||
<version>2.5.0-cdh5.3.0</version> | ||
<version>2.6.0-cdh5.10.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dito.
pom.xml
Outdated
<type>test-jar</type> | ||
<classifier>tests</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hbase</groupId> | ||
<artifactId>hbase-client</artifactId> | ||
<version>0.98.6-cdh5.3.0</version> | ||
<version>1.2.0-cdh5.10.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put this into a variable. This makes later changes easier.
pom.xml
Outdated
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hbase</groupId> | ||
<artifactId>hbase-server</artifactId> | ||
<version>0.98.6-cdh5.3.0</version> | ||
<version>1.2.0-cdh5.10.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dito.
pom.xml
Outdated
<type>test-jar</type> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hbase</groupId> | ||
<artifactId>hbase-server</artifactId> | ||
<version>0.98.6-cdh5.3.0</version> | ||
<version>1.2.0-cdh5.10.1</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dito.
src/resources/krb5.conf
Outdated
@@ -0,0 +1,29 @@ | |||
# Configuration snippets may be placed in this directory as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need a Kerberos configuration file?
import static org.junit.Assert.assertFalse; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comment.
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import static org.junit.Assert.assertFalse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try not to use static imports.
@@ -0,0 +1,154 @@ | |||
package org.apache.hadoop.hbase.client; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reformat the whole file. There are a lot of empty lines in between.
} | ||
|
||
|
||
// //failover Cluster2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these lines are commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some additional comments.
import org.apache.hadoop.hbase.HConstants; | ||
import org.apache.hadoop.hbase.HTableDescriptor; | ||
import org.apache.hadoop.hbase.TableName; | ||
import org.apache.hadoop.hbase.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use * imports.
|
||
import org.apache.hadoop.conf.Configuration; | ||
import org.apache.hadoop.hbase.HBaseConfiguration; | ||
import org.apache.hadoop.hbase.TableName; | ||
import org.apache.hadoop.hbase.client.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use * imports.
@@ -1,41 +1,32 @@ | |||
package org.apache.hadoop.hbase.client; | |||
package org.apache.hadoop.hbase.test; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change of the package name?
|
||
|
||
|
||
Assert.assertEquals(Boolean.FALSE, result.isEmpty()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you use a simple false
?
@@ -142,13 +101,10 @@ public void writeToMCC(){ | |||
Get get1 = new Get(Bytes.toBytes("row4")); | |||
Result result = multiTable.get(get1); | |||
|
|||
assertFalse(result.isEmpty()); | |||
Assert.assertEquals(Boolean.FALSE, result.isEmpty()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto ... or just Assert.assertFalse
.
pom.xml
Outdated
@@ -15,84 +15,87 @@ | |||
|
|||
<maven.compiler.target>1.7</maven.compiler.target> | |||
<maven.compiler.source>1.7</maven.compiler.source> | |||
<hadoop.version>2.6.0-cdh5.10.1</hadoop.version> | |||
<hbase.version>1.2.0-cdh5.10.1</hbase.version> | |||
<cloudera-manager.version>5.10.1</cloudera-manager.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this one to cdh.version
.
pom.xml
Outdated
@@ -15,84 +15,87 @@ | |||
|
|||
<maven.compiler.target>1.7</maven.compiler.target> | |||
<maven.compiler.source>1.7</maven.compiler.source> | |||
<hadoop.version>2.6.0-cdh5.10.1</hadoop.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid duplication use the variable for CDH in this one.
pom.xml
Outdated
@@ -15,84 +15,87 @@ | |||
|
|||
<maven.compiler.target>1.7</maven.compiler.target> | |||
<maven.compiler.source>1.7</maven.compiler.source> | |||
<hadoop.version>2.6.0-cdh5.10.1</hadoop.version> | |||
<hbase.version>1.2.0-cdh5.10.1</hbase.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Jan, Please review the changes