Configuration config = HBaseConfiguration.create();
config的設定有找到以下幾種(應該不只):
config.set(
"hbase.zookeeper.quorum",
"ec2- xxx-1.amazonaws.com");
config.set(
"hbase.zookeeper.property.client.port",
"12345");
config.addResource(
new Path(System.
getenv(
"HBASE_CONF_DIR"),
"hbase-site.xml"));
config.addResource(
new Path(System.
getenv(
"HADOOP_CONF_DIR"),
"core-site.xml"));
參考
Configuration conf = HBaseConfiguration.create();
Cluster cluster = new Cluster();
| cluster.add("ec2-23-20-165-137.compute-1.amazonaws.com", 8080); // co RestExample-1-Cluster Set up a cluster list adding all known REST server hosts. |
| Client client = new Client(cluster); // co RestExample-2-Client Create the client handling the HTTP communication. |
參考
|
|
|
| |
| |
沒有留言:
發佈留言