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.

Atlas Metadata Server wouldn't start on HDP3.0

Highlighted

Atlas Metadata Server wouldn't start on HDP3.0

New Contributor

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 163, 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/3.0.0.0-1634/atlas/bin/atlas_config.py", line 160, in expandWebApp
    jar(atlasWarPath)
  File "/usr/hdp/3.0.0.0-1634/atlas/bin/atlas_config.py", line 213, in jar
    process = runProcess(commandline)
  File "/usr/hdp/3.0.0.0-1634/atlas/bin/atlas_config.py", line 249, 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

92889-qq圖片20181017100217.jpg

4 REPLIES 4

Re: Atlas Metadata Server wouldn't start on HDP3.0

Super Mentor

@chen fan

It can happen due to broken symlinks.
Please check if the following symlink exist correctly ? If not then please create one.

# ls -l /usr/hdp/current/atlas-server/conf
lrwxrwxrwx. 1 atlas hadoop 25 Aug 15 01:55 /usr/hdp/current/atlas-server/conf -> /etc/atlas/3.0.0.0-1634/0

.
Here the "conf" should actually be a symlink instead of a directory like following:

# ls -l /usr/hdp/current/atlas-server/
total 32
drwxr-xr-x. 2 atlas hadoop  4096 Aug 19 02:00 bin
lrwxrwxrwx. 1 atlas hadoop    25 Aug 15 01:55 conf -> /etc/atlas/3.0.0.0-1634/0
drwxr-xr-x. 2 atlas hadoop     6 Aug 15 01:58 data
-rwxr-xr-x. 1 atlas hadoop   210 Jul 12 20:29 DISCLAIMER.txt
drwxr-xr-x. 7 atlas hadoop  4096 Aug 15 01:55 docs
drwxr-xr-x. 4 atlas hadoop    31 Jul 21 08:18 hook
drwxr-xr-x. 2 atlas hadoop    51 Jul 21 08:18 hook-bin
drwxr-xr-x. 3 atlas hadoop   149 Aug 15 01:54 libext
-rwxr-xr-x. 1 atlas hadoop 14289 Jul 12 20:29 LICENSE
drwxr-xr-x. 6 atlas hadoop    79 Aug 15 01:55 models
-rwxr-xr-x. 1 atlas hadoop   169 Jul 12 20:29 NOTICE
drwxr-xr-x. 3 atlas hadoop    20 Aug 15 01:55 server
drwxr-xr-x. 3 atlas hadoop    32 Aug 15 01:55 tools


Once the symlink is in place please verify if the following path exist and has proper ownership as "atlas:hadoop"

# ls -l /usr/hdp/current/atlas-server/conf/atlas-env.sh 
-rwxr-xr-x. 1 atlas hadoop 1634 Aug 15 01:58 /usr/hdp/current/atlas-server/conf/atlas-env.sh

# ls -l /usr/hdp/current/atlas-server/bin/atlas_start.py 
-rwxr-xr-x. 1 atlas hadoop 6539 Jul 12 20:37 /usr/hdp/current/atlas-server/bin/atlas_start.py

.

Re: Atlas Metadata Server wouldn't start on HDP3.0

New Contributor

@Jay Kumar SenSharma

Thanks for your answer

the following symlink exist is correctly,and the "conf" is actually as a symlink,so as "atlas:hadoop"

my setps as follows

[root@ambari-server0 ~]# /usr/hdp/current/atlas-server/bin/atlas_start.py 
Exception: [Errno 2] No such file or directory 
Traceback (most recent call last):
  File "/usr/hdp/current/atlas-server/bin/atlas_start.py", line 163, 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/3.0.0.0-1634/atlas/bin/atlas_config.py", line 160, in expandWebApp
    jar(atlasWarPath)
  File "/usr/hdp/3.0.0.0-1634/atlas/bin/atlas_config.py", line 213, in jar
    process = runProcess(commandline)
  File "/usr/hdp/3.0.0.0-1634/atlas/bin/atlas_config.py", line 249, 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


[root@ambari-server0 ~]# ls -l /usr/hdp/current/atlas-server/conf/
total 36
-rw------- 1 atlas hadoop 3240 Oct 17 10:25 atlas-application.properties
-rwxr-xr-x 1 atlas hadoop 1675 Oct 16 20:22 atlas-env.sh
-rw-r--r-- 1 atlas hadoop 3656 Oct 16 20:22 atlas-log4j.xml
-rw-r--r-- 1 atlas hadoop 1459 Jul 13 04:37 atlas-simple-authz-policy.json
-rw-r--r-- 1 atlas hadoop 4794 Oct 16 20:22 core-site.xml
drwxr-xr-x 2 atlas hadoop 4096 Oct 16 19:42 hbase
drwxr-xr-x 3 atlas hadoop 4096 Oct 16 19:42 solr
-rw-r--r-- 1 atlas hadoop  212 Oct 16 20:22 users-credentials.properties
[root@ambari-server0 ~]# ls -l /usr/hdp/current/atlas-server/conf
lrwxrwxrwx 1 atlas hadoop 25 Oct 16 19:44 /usr/hdp/current/atlas-server/conf -> /etc/atlas/3.0.0.0-1634/0
[root@ambari-server0 ~]# ls -l /usr/hdp/current/atlas-server/
total 60
drwxr-xr-x 2 atlas hadoop  4096 Oct 17 10:35 bin
lrwxrwxrwx 1 atlas hadoop    25 Oct 16 19:44 conf -> /etc/atlas/3.0.0.0-1634/0
drwxr-xr-x 2 atlas hadoop  4096 Oct 16 20:22 data
-rwxr-xr-x 1 atlas hadoop   210 Jul 13 04:29 DISCLAIMER.txt
drwxr-xr-x 7 atlas hadoop  4096 Oct 16 19:42 docs
drwxr-xr-x 6 atlas hadoop  4096 Oct 16 20:07 hook
drwxr-xr-x 2 atlas hadoop  4096 Oct 16 19:47 hook-bin
drwxr-xr-x 3 atlas hadoop  4096 Oct 16 19:41 libext
-rwxr-xr-x 1 atlas hadoop 14289 Jul 13 04:29 LICENSE
drwxr-xr-x 6 atlas hadoop  4096 Oct 16 19:42 models
-rwxr-xr-x 1 atlas hadoop   169 Jul 13 04:29 NOTICE
drwxr-xr-x 3 atlas hadoop  4096 Oct 16 19:42 server
drwxr-xr-x 3 atlas hadoop  4096 Oct 16 19:42 tools
[root@ambari-server0 ~]# ll /usr/hdp/current/atlas-server/conf/atlas-env.sh 
-rwxr-xr-x 1 atlas hadoop 1675 Oct 16 20:22 /usr/hdp/current/atlas-server/conf/atlas-env.sh
[root@ambari-server0 ~]# ll /usr/hdp/current/atlas-server/bin/atlas_start.py 
-rwxr-xr-x 1 atlas hadoop 6539 Jul 13 04:37 /usr/hdp/current/atlas-server/bin/atlas_start.py

Re: Atlas Metadata Server wouldn't start on HDP3.0

Contributor

This is likely to be caused by missing atlas.war file in directory /usr/hdp/current/atlas-server/server/atlas/webapp. Can you please verify that this file exists?

Re: Atlas Metadata Server wouldn't start on HDP3.0

New Contributor

Is this issue solved? I currently hit the same issue with the same error.

Please provide any solutions if you have. Thnks.