Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

Highlighted

Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

Contributor

I am failing to install Apache Metron 0.3 RC (Quick Development VM). I am getting the following error.

TASK [ambari_gather_facts : debug] *********************************************
ok: [node1] => {
    "msg": "zookeeper_port = 2181, zookeeper_hosts = [u'node1'], zookeeper_url = node1:2181, kafka_broker_port = 6667, kafka_broker_hosts = [u'node1'], kafka_broker_url = node1:6667"
}
TASK [metron_hbase_tables : Create the HBase tables required for Metron] *******
failed: [node1] => (item=pcap) => {"changed": true, "cmd": "echo \"create 'pcap','t'\" | hbase shell -n", "delta": "0:00:19.414987", "end": "2016-11-23 00:56:03.856160", "failed": true, "failed_when_result": true, "item": "pcap", "rc": 1, "start": "2016-11-23 00:55:44.441173", "stderr": "java exception", "stdout": "ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null", "stdout_lines": ["ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null"], "warnings": []}
failed: [node1] => (item=access_tracker) => {"changed": true, "cmd": "echo \"create 'access_tracker','t'\" | hbase shell -n", "delta": "0:00:18.417596", "end": "2016-11-23 00:56:22.664625", "failed": true, "failed_when_result": true, "item": "access_tracker", "rc": 1, "start": "2016-11-23 00:56:04.247029", "stderr": "java exception", "stdout": "ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null", "stdout_lines": ["ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null"], "warnings": []}
failed: [node1] => (item=threatintel) => {"changed": true, "cmd": "echo \"create 'threatintel','t'\" | hbase shell -n", "delta": "0:00:17.542461", "end": "2016-11-23 00:56:40.640655", "failed": true, "failed_when_result": true, "item": "threatintel", "rc": 1, "start": "2016-11-23 00:56:23.098194", "stderr": "java exception", "stdout": "ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null", "stdout_lines": ["ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null"], "warnings": []}
failed: [node1] => (item=enrichment) => {"changed": true, "cmd": "echo \"create 'enrichment','t'\" | hbase shell -n", "delta": "0:00:18.293148", "end": "2016-11-23 00:56:59.333848", "failed": true, "failed_when_result": true, "item": "enrichment", "rc": 1, "start": "2016-11-23 00:56:41.040700", "stderr": "java exception", "stdout": "ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null", "stdout_lines": ["ERROR Java::JavaIo::IOException: Can't get master address from ZooKeeper; znode data == null"], "warnings": []}
PLAY RECAP *********************************************************************
node1                      : ok=98   changed=27   unreachable=0    failed=1  

Any Idea how can I fix this ?

5 REPLIES 5
Highlighted

Re: Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

can you check whether your hbase services are running (you can run 'jps' and check for HMaster , HQuorumPeer,HRegionServer)

Highlighted

Re: Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

Contributor

Following is the output of jps command in node1. As per your say it seems like they are not running. I am doing installaton as per the quick-development guide. Any suggestion ?

4578 AmbariServer
15492 Elasticsearch
9928 NodeManager
6089 NameNode
10121 core
5769 QuorumPeerMain
20235 Jps
9452 drpc
8174 Kafka
10350 supervisor
7343 ApplicationHistoryServer
8815 ResourceManager
5903 DataNode
8559 nimbus
9041 SecondaryNameNode
8028 JobHistoryServer
10399 logviewer
Highlighted

Re: Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

Check your hbase master and regionserver logs in /var/log/hbase/ for errors.

Re: Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

Contributor

Hi,

I am getting following error in hbase-hbase-master-node1.log

2016-12-28 01:38:30,600 ERROR [master/node1/192.168.66.121:16000] zookeeper.RecoverableZooKeeper: ZooKeeper delete failed after 7 attempts
2016-12-28 01:38:30,600 WARN  [master/node1/192.168.66.121:16000] regionserver.HRegionServer: Failed deleting my ephemeral node
org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase-unsecure/rs/node1,16000,1482888544549
   at org.apache.zookeeper.KeeperException.create(KeeperException.java:127)
   at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
   at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:873)
   at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.delete(RecoverableZooKeeper.java:178)
   at org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNode(ZKUtil.java:1222)
   at org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNode(ZKUtil.java:1211)
   at org.apache.hadoop.hbase.regionserver.HRegionServer.deleteMyEphemeralNode(HRegionServer.java:1427)
   at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:1098)
   at java.lang.Thread.run(Thread.java:745)
2016-12-28 01:38:30,601 INFO  [master/node1/192.168.66.121:16000] regionserver.HRegionServer: stopping server node1,16000,1482888544549; zookeeper connection closed.
Highlighted

Re: Apache Metron 0.3 fails metron_hbase_tables : Create the HBase tables required for Metron

Contributor

It turned out to be low JAVA Heap Space. Issue I increased that in Vagrant Box and this solved the issue. Thanks

Ankit Singhal for pointing me in right direction.

Don't have an account?
Coming from Hortonworks? Activate your account here