Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added the ability to change the ClientPort

  • Loading branch information...
commit 2f47ee8305d79cd45c72a3eaa85726e5ab2984d1 1 parent 2c81314
Jeremy Carroll phobos182 authored
1  conf/tsdash.properties
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:
4 server/src/com/facebook/tsdb/tsdash/server/data/hbase/HBaseConnection.java
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.