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>

 

猜你喜欢

转载自puffsun.iteye.com/blog/1910806
今日推荐