Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2731 | 04-27-2020 03:48 AM | |
| 5289 | 04-26-2020 06:18 PM | |
| 4459 | 04-26-2020 06:05 PM | |
| 3584 | 04-13-2020 08:53 PM | |
| 5387 | 03-31-2020 02:10 AM |
10-10-2017
10:42 AM
2 Kudos
@Lou Richard You are using JRE (/usr/lib/jvm/jre-1.8.0-openjdk/bin/) which does not have "jar" utility inside the it's "bin" directory. You need JDK (not JRE). https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_command-line-installation/content/meet-min-system-requirements.html
... View more
10-10-2017
10:01 AM
@ilia kheifets Are you running ambari server as "root" or non root user? Do you have proper write permission (Read-Write) inside the following directory "/var/lib/ambari-agent/data" ? WARNING 2017-10-1004:57:27,083CommandStatusDict.py:128-[Errno2] No such file or directory:'/var/lib/ambari-agent/data/output-307.txt' .
... View more
10-10-2017
09:35 AM
@raouia Your command is correct. It should work without any issue. I tested the same as following: Example: curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "admin", "password": "admin_new_pwd", "old_password": "admin"}}' http://blueprint.example.com:8080/api/v1/users/admin . Here blueprint.example.com: is my Ambari Server Hostname admin: is the ambari user name admin: is old password (If you want to change any other user password then please make sure that you enter admin password only here as this is the password of the admin user. Only Admin user can change password of other users) admin_new_pwd: is the new admin user password. Output: # curl -i -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Users": { "user_name": "admin", "password": "admin_new_pwd", "old_password": "admin"}}' http://blueprint.example.com:8080/api/v1/users/admin
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=1uldktxnl7c1xfgbfx878sows;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 0
... View more
10-10-2017
08:47 AM
1 Kudo
@Lou Richard Please try this: # cd /usr/hdp/2.6.1.0-129/atlas/server/webapp/
# mv atlas ../
# /usr/lib/jvm/jre-1.8.0-openjdk/bin/jar -xf atlas.war . And then try restarting the atlas.
... View more
10-10-2017
08:28 AM
@Lou Richard Looks like you already have "java-1.8.0-openjdk-1.8.0.141-1.b16.el7_3.x86_64" present in your atlas host. So all you need to do is that locate that JDK and then set the JAVA_HOME some thing like : export JAVA_HOME=/PATH/TO/java-1.8.0-openjdk-1.8.0.141 . Example: In the file "/etc/profile" we can set the JAVA_HOME for all the users globally. You will need to find the exact location of your JDK 1.8.0.141 installation on your file system and then set it accordingly. export JAVA_HOME=/usr/jdk64/java-1.8.0-openjdk-1.8.0.141
export PATH=$JAVA_HOME/bin:$PATH .
... View more
10-10-2017
08:24 AM
1 Kudo
@Lou Richard JDK requirement: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_support-matrices/content/ch_matrices-hdp.html#hdp_jdk One option is to set the java_home for the cluster using setup command as following: , Using this option when you plan to use a JDK other than the default Oracle JDK 1.8. If you are using an alternate JDK, you must manually install the same JDK on all hosts and specify the Java Home path during Ambari Server setup. # ambari-server setup --java-home=/usr/jdk64/jdk1.8.0_121 https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/setup_options.html
... View more
10-10-2017
07:41 AM
1 Kudo
@Lou Richard You are using JRE (Not JDK): "/usr/lib/jvm/jre-1.8.0-openjdk"
I am suspecting that it might be because of missing "jar" utility which is used to extract the war. https://github.com/apache/incubator-atlas/blob/master/distro/src/bin/atlas_config.py#L193-L196 . Can you please install a JDK (not JRE) on your host and then set the JAVA_HOME properly.
... View more
10-10-2017
06:58 AM
1 Kudo
@Lou Richard Do you have the "JAVA_HOME" property set properly? After reviewing the script "atlas_config.py" the only thing that i am suspecting at this point ... maybe the JAVA_HOME is not properly set. As the execution "commandline" variable in the script looks for it. . I will also suggest if you can try manually extracting the file to see if it works: # cd /usr/hdp/2.6.1.0-129/atlas/server/webapp/
# mv atlas ../
# $JAVA_HOME/bin/jar -xf atlas.war . Then try restarting the Atlas.
... View more
10-10-2017
06:25 AM
2 Kudos
@Lou Richard We see the cause of failure as following: 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_exceptionOSError: [Errno 2] No such file or directory So can you please check the following directory to see if the "atlas.war" is extracted there or not? And the directory permission is set to "atlas:hadoop" # ls /usr/hdp/2.6.1.0-129/atlas/server/webapp/
atlas atlas.war
### Permission atlas:hadoop
# ls -ld /usr/hdp/2.6.1.0-129/atlas/server/webapp
drwxr-xr-x 1 atlas hadoop 4096 xxx 19 18:51 /usr/hdp/2.6.1.0-129/atlas/server/webapp . If it is not extracted there properly then please try to extract the war and then see if it works. .
... View more
10-10-2017
03:54 AM
@dsun Please do not change any table state to "UPGRADING" that will cause issues. As you are getting the following message: Reason: There is an existing upgrade from 2.6.1.0-129 to 2.6.2.0-205 which has not completed. This upgrade must be completed before a new upgrade or downgrade can begin. It will be best if you can share the output of the following tables queries which seems to be not alright: ambari=> SELECT * FROM host_version;
ambari=> SELECT * FROM cluster_version;
ambari=> SELECT * FROM clusterstate;
ambari=> SELECT repo_version_id, stack_id, version FROm repo_version;
. Can you please share the output of the above SQL statements?
... View more