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.

Failed starting Atlas metadata server via ambari

Highlighted

Failed starting Atlas metadata server via ambari

Contributor

I tried to start Atlas metadata server via ambari but failed. below are the error displayed on ambari :

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 175, in <module>
    MetadataServer().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py", line 111, in start
    not_if=no_op_test
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, 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 262, 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 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'source /usr/hdp/current/atlas-server/conf/atlas-env.sh ; /usr/hdp/current/atlas-server/bin/atlas_start.py' returned 255. Exception: [Errno 2] No such file or directory 
Traceback (most recent call last):
  File "/usr/hdp/current/atlas-server/bin/atlas_start.py", line 149, in <module>
    returncode = main()
  File "/usr/hdp/current/atlas-server/bin/atlas_start.py", line 73, in main
    mc.expandWebApp(atlas_home)
  File "/usr/hdp/2.6.3.0-235/atlas/bin/atlas_config.py", line 149, in expandWebApp
    jar(atlasWarPath)
  File "/usr/hdp/2.6.3.0-235/atlas/bin/atlas_config.py", line 202, in jar
    process = runProcess(commandline)
  File "/usr/hdp/2.6.3.0-235/atlas/bin/atlas_config.py", line 238, in runProcess
    p = subprocess.Popen(commandline, stdout=stdoutFile, stderr=stderrFile, shell=shell)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Thanks.

9 REPLIES 9

Re: Failed starting Atlas metadata server via ambari

@Bramantya Anggriawan:

Please check if the atlas metadata server package is installed properly and you have these files /usr/hdp/current/atlas-server/bin/atlas_start.py and /usr/hdp/current/atlas-server/conf/atlas-env.sh.

resource_management.core.exceptions.ExecutionFailed: Execution of 'source /usr/hdp/current/atlas-server/conf/atlas-env.sh ; /usr/hdp/current/atlas-server/bin/atlas_start.py' returned 255. Exception: [Errno 2] No such file or directory 

Re: Failed starting Atlas metadata server via ambari

Contributor

@Sandeep Nemuri

Yes, i have /usr/hdp/current/atlas-server/bin/atlas_start.py and /usr/hdp/current/atlas-server/conf/atlas-env.sh.

But the error still said that those file/dirrectory not exist.

Re: Failed starting Atlas metadata server via ambari

New Contributor

@Bramantya Anggriawan, if the files are present under /usr/hdp/current/atlas-server, there is a chance that there may be an ownership issue for the files, can you check the ownership of the files by using the below commands:
ls -altr /usr/hdp/current/atlas-server/bin/
ls -altr /usr/hdp/current/atlas-server/conf/

Re: Failed starting Atlas metadata server via ambari

Contributor

@vsuvagia

attached the result for :

ls -altr /usr/hdp/current/atlas-server/bin/
ls -altr /usr/hdp/current/atlas-server/conf/atlas-error-1.png

Re: Failed starting Atlas metadata server via ambari

New Contributor

@Bramantya Anggriawan, If the files are already present, then can you check whether there is a log-directory defined for Atlas-Metadata server, you can check this in Ambari - atlas-env.sh section, also check if the log-directory path actually exists

Re: Failed starting Atlas metadata server via ambari

Contributor

Yes, log directory already present and pointing to /var/log/atlas/

but the directory is empty

Re: Failed starting Atlas metadata server via ambari

New Contributor

Hi! Did you fix the problem with Atlas? Thank you very much :)

Re: Failed starting Atlas metadata server via ambari

New Contributor

109479-screen-shot-2019-06-24-at-10308-pm.png

I'm facing an issue not able to start metadata in Apache Atlas ,looks like key tabs are not generated for atlas above is the error . can anybody help me.

Re: Failed starting Atlas metadata server via ambari

Community Manager

Rajesh, I see from our internal logs you submitted an HCC Idea the same day, but because it was a substantially-similar question to the above, it was rejected. You would stand a better chance of a useful response (if the responses below aren't helpful) if you posted this as a new question.