Adding HBase Library into Java Classpath

Suppose you write some Java code to operate HBase via HBase Java client interface, you compile and package the java source code into a jar, called examples.jar. In Hadoop cluster you can use "hbase classpath" to get the class path needed. 

$ java -cp examples.jar:`hbase classpath` hbaseinaction.UsersTool <program arguments>

相关推荐