Support Questions
Find answers, ask questions, and share your expertise

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
Highlighted

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 
Highlighted

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.

Highlighted

Re: Failed starting Atlas metadata server via ambari

Explorer

@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/

Highlighted

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

Highlighted

Re: Failed starting Atlas metadata server via ambari

Explorer

@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

Highlighted

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

Highlighted

Re: Failed starting Atlas metadata server via ambari

New Contributor

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

Highlighted

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.

Highlighted

Re: Failed starting Atlas metadata server via ambari

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.

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.