Created 02-08-2017 02:26 PM
Hello all,
I have previously had success working with Apache Atlas within the Sandbox using Docker, but on a fresh install, I've come across the following issue I cannot resolve.
Environment:
stderr: /var/lib/ambari-agent/data/errors-187.txt
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py", line 217, in <module>
MetadataServer().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py", line 94, in start
user=params.hbase_user
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 273, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call
raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'cat /var/lib/ambari-agent/tmp/atlas_hbase_setup.rb | hbase shell -n' returned 1. atlas_titan
ATLAS_ENTITY_AUDIT_EVENTS
atlas
TABLE
atlas_titan
1 row(s) in 0.3290 seconds
nil
TABLE
atlas_titan
1 row(s) in 0.0020 seconds
nil
ERROR ArgumentError: DISABLED: Security features are not available
Trying to debug from HBase, I see the following:
hbase(main):001:0> list TABLE atlas_titan 1 row(s) in 0.1710 seconds => ["atlas_titan"
So it seems that creating ATLAS_ENTITY_AUDIT_EVENTS fails, but when I attempt to do so manually:
hbase(main):002:0> create 'ATLAS_ENTITY_AUDIT_EVENTS', {NAME => 'dt', DATA_BLOCK_ENCODING => 'FAST_DIFF', COMPRESSION =>'GZ', BLOOMFILTER =>'ROW'}
ERROR: Table already exists: ATLAS_ENTITY_AUDIT_EVENTS!
However:
hbase(main):002:0> exists 'ATLAS_ENTITY_AUDIT_EVENTS' Table ATLAS_ENTITY_AUDIT_EVENTS does not exist 0 row(s) in 0.0780 seconds
I am uncertain how to proceed; any help would be greatly appreciated!
Created 02-08-2017 05:27 PM
It is possible that zookeeper has that corresponding znode for that table and restricting to create the table. So, I would suggest, open the zookeeper client terminal and delete the hbase table znode entry using this command "rmr /hbase/table/TABLE_NAME" .
After that restart hbase service(both master+region servers) and try recreating the table. This should resolve the issue.
Created 02-08-2017 05:27 PM
It is possible that zookeeper has that corresponding znode for that table and restricting to create the table. So, I would suggest, open the zookeeper client terminal and delete the hbase table znode entry using this command "rmr /hbase/table/TABLE_NAME" .
After that restart hbase service(both master+region servers) and try recreating the table. This should resolve the issue.
Created 02-13-2017 05:28 PM
Did you try the mentioned solution? Is it working for you?
Created 02-13-2017 05:46 PM
Hi Ayub,
Apologies for the delayed response. Your solution did in fact resolve this curious issue. Thanks again!
Created 02-13-2017 05:55 PM
Glad it worked! Accept the answer.