How to setup titan over hbase in a single node hadoop -
i have single node hadoop , have installed hbase on ubuntu 12.04. want install titan on hbase. have setup hadoop-1.0.3 , hbase-0.94.18 , titan/hbase-0.4.2
i have added user mnit.my /usr/local/ folder contains hadoop2 , hbase2, titan2 .first start hadoop using command bin/start-all.sh , start hbase using command bin/start-hbase.sh . after when jps found following :
mnit@aman:/usr/local$ jps 9921 datanode 11386 hregionserver 11041 hquorumpeer 11537 jps 11115 hmaster 10153 secondarynamenode 10252 jobtracker 9691 namenode 10483 tasktracker
now start gremlin.sh in titan2 using command bin/gremlin.sh . applied following commands
mnit@aman:/usr/local/titan2$ bin/gremlin.sh gremlin> conf = new baseconfiguration(); ==>org.apache.commons.configuration.baseconfiguration@19288c2 gremlin> conf.setproperty("storage.backend","hbase"); ==>null gremlin> conf.setproperty("storage.hostname","127.0.0.1"); ==>null gremlin> g = titanfactory.open(conf); warn org.apache.zookeeper.clientcnxn - session 0x0 server null, unexpected error, closing socket connection , attempting reconnect java.net.connectexception: connection refused @ sun.nio.ch.socketchannelimpl.checkconnect(native method) @ sun.nio.ch.socketchannelimpl.finishconnect(socketchannelimpl.java:739) @ org.apache.zookeeper.clientcnxnsocketnio.dotransport(clientcnxnsocketnio.java:350) @ org.apache.zookeeper.clientcnxn$sendthread.run(clientcnxn.java:1068) warn org.apache.hadoop.hbase.zookeeper.recoverablezookeeper - possibly transient zookeeper exception: org.apache.zookeeper.keeperexception$connectionlossexception: keepererrorcode = connectionloss /hbase/hbaseid warn org.apache.zookeeper.clientcnxn - session 0x0 server null, unexpected error, closing socket connection , attempting reconnect java.net.connectexception: connection refused @ sun.nio.ch.socketchannelimpl.checkconnect(native method) @ sun.nio.ch.socketchannelimpl.finishconnect(socketchannelimpl.java:739) @ org.apache.zookeeper.clientcnxnsocketnio.dotransport(clientcnxnsocketnio.java:350) @ org.apache.zookeeper.clientcnxn$sendthread.run(clientcnxn.java:1068)
when searched on problem found there file named pom.xml titan have downloaded not contain pom.xml. please tell me if problem due pom.xml. or doing wrong or there other issue.
thanks in advance
zk managed hbase in system. have added following line in bin/hbase-env.sh
export hbase_manages_zk=true
the content of hbase-site.xml follows :
<configuration> <property> <name>hbase.rootdir</name> <value>hdfs://localhost:54310/user/hbase</value> </property> <property> <name>dfs.replication</name> <value>1</value> </property> <property> <name>hbase.cluster.distributed</name> <value>true</value> </property> <property> <name>hbase.zookeeper.property.clientport</name> <value>2222</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>localhost</value> </property> <property> <name>hbase.zookeeper.property.datadir</name> <value>/app/hadoop/tmp/zookeeper</value> </property> </configuration>
your titan , hbase configurations appear inconsistent. hbase-site.xml overrides default zk port (2181) 2222, seems haven't told titan use non-default zk port setting storage.port in titan config file. naturally, can't talk each other in state. doesn't have pom.xml.
by way, please don't simultaneously crosspost , aureliusgraphs google group. they're both venues different purposes, seem have copy-pasted between question , your subjectless thread on aureliusgraphs list.
Comments
Post a Comment