Permalink
Browse files

Added the ability to change the ClientPort

  • Loading branch information...
1 parent 2c81314 commit 2f47ee8305d79cd45c72a3eaa85726e5ab2984d1 @phobos182 phobos182 committed Mar 6, 2012
View
@@ -3,6 +3,7 @@ hbase.tsdash.datatable=tsdb
hbase.tsdash.uidtable=tsdb-uid
hbase.zookeeper.quorum=localhost
+hbase.zookeeper.property.clientPort=2181
# urlpattern is the pattern used to generate URLs of the plots generated by running Gnuplot
# The parameters are:
@@ -31,6 +31,7 @@
public static final String TSDB_DATA_TABLE = "hbase.tsdash.datatable";
public static final String TSDB_UID_TABLE = "hbase.tsdash.uidtable";
public static final String ZK_QUORUM = "hbase.zookeeper.quorum";
+ public static final String ZK_CLIENTPORT = "hbase.zookeeper.property.clientPort";
public static final String ZK_ZNODE_PARENT = "zookeeper.znode.parent";
private static String dataTable = "tsdb";
@@ -43,9 +44,12 @@ public static void configure(Properties tsdbConf) {
idsTable = tsdbConf.getProperty(TSDB_UID_TABLE, idsTable);
final String zookeeperQuorum =
tsdbConf.getProperty(ZK_QUORUM,"localhost");
+ final String zookeeperClientPort =
+ tsdbConf.getProperty(ZK_CLIENTPORT,"2181");
final String parentZnode =
tsdbConf.getProperty(ZK_ZNODE_PARENT, "/hbase");
conf.setStrings(ZK_QUORUM, zookeeperQuorum);
+ conf.setStrings(ZK_CLIENTPORT, zookeeperClientPort);
conf.setStrings(ZK_ZNODE_PARENT, parentZnode);
logger.info("HBase configuration: "
+ " using tables '" + dataTable + "', " + "'" + idsTable

0 comments on commit 2f47ee8

Please sign in to comment.