Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2825 | 04-27-2020 03:48 AM | |
| 5479 | 04-26-2020 06:18 PM | |
| 4661 | 04-26-2020 06:05 PM | |
| 3702 | 04-13-2020 08:53 PM | |
| 5604 | 03-31-2020 02:10 AM |
02-14-2019
04:52 AM
@Dan Hops
As we see the following error: Permission denied: user=admin, access=WRITE, inode="/user":hdfs:hdfs:drwxr-xr-x . Which means you are trying to run the job as 'admin' user. Hence please make sure that the "/user/admin" directory is created to the HDFS using supreuser and then you can run your jobs. So please do the following: # su - hdfs -c "hdfs dfs -mkdir /user/admin"
# su - hdfs -c "hdfs dfs -chown -R admin:hdfs /user/admin"
# su - hdfs -c "hdfs dfs -chmod 755 /user/admin" . Then try running your jobs. .
... View more
02-12-2019
12:52 PM
1 Kudo
@Michael Bronson Can you please try something like this: # curl --user admin:admin -i -H 'X-Requested-By: ambari' -X POST -d '{"ViewInstanceInfo":{"instance_name":"SLIDER_NEW","label":"SLIDER_NEW","visible":true,"description":"SLIDER_NEWDescription","properties":{"ambari.server.url":"http://localhost:8080/api/v1/clusters/YOUR_CLUSTER_NAME","ambari.server.username":"admin","ambari.server.password":"admin","slider.user":"admin"},"cluster_type":"NONE"}}' http://localhost:8080/api/v1/views/SLIDER/versions/2.0.0/instances/SLIDER_NEW . You will need to make sure to change the Cluster Name "YOUR_CLUSTER_NAME" in the following piece of the JSON data: "ambari.server.url":"http://localhost:8080/api/v1/clusters/YOUR_CLUSTER_NAME" .
... View more
02-11-2019
05:09 AM
@Shraddha Singh As we see the error : ERROR: Unable to write in /var/log/hadoop/hdfs. Aborting. . So please make sure that the dir permissions are correctly set as following: # ls -ld /var/log/hadoop/hdfs
drwxr-xr-x. 2 hdfs hadoop 8192 Feb 11 03:27 /var/log/hadoop/hdfs . If you see permissions are incorrectly set then please do the following and then try starting process again: (You executed chmod, better you change the ownership of the mentioned directories as following) # chown -R hdfs:hadoop /var/log/hadoop . Then try your commands: # su - hdfs
# hdfs dfsadmin -safemode leave .
... View more
02-06-2019
06:17 AM
@ram sriram You can click on the "Accept" button on the correct answer, that way other HCC users can quickly browser the answered queries.
... View more
02-06-2019
05:44 AM
1 Kudo
@ram sriram There is not separate instructions for ambari installation on Ubuntu. Mostly it involves common steps. https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation/content/ch_Getting_Ready.html https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation/content/install-ambari-server-ubuntu16.html . However you can take a 3 year old video if you want to see some Ubuntu specific commands (although Above doc is sufficient) Something similar to this video (just use the latest version of ambari) https://www.youtube.com/watch?v=letMI5VqoT0
... View more
02-06-2019
02:59 AM
@Tom Burke Are you really checking what kind of command aere you executing in curl and what does every curl argument means? Before attaching the "hosts4.json" if you would have just checked the content of this file then you would know that the credentials which you are entering in curl command are Wrong ambari admin credential. # cat hosts4.json
{
"status": 403,
"message": "Unable to sign in. Invalid username/password combination."
} . As i do not know your ambari admin credentials hence i just gave you a dummy curl command and expected that you will change the values according to your cluster.
... View more
02-06-2019
02:56 AM
1 Kudo
@Tom Burke It may be browser caching issue. So please try this: 1. Open the Web Browser in "Private Mode" (In Firefox) or "Incognito Mode" (in Chrome) and then try again. 2. If still you face the same issue then please try this to edit the "/etc/ambari-server/ambari.properties" file and then unset the value of the following two properties: FROM
------
http.strict-transport-security=max-age=31536000
views.http.strict-transport-security=max-age=31536000
TO
------
http.strict-transport-security=max-age=
views.http.strict-transport-security=max-age= The restart ambari-server and then try accessing the UI again # ambari-server restart .
... View more
02-06-2019
01:16 AM
@Tom Burke Please change the protocol to "https" in your case if you are using https for your ambari and then try this: # curl -k -H "X-Requested-By: ambari" -u admin:admin "https://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name" -o "/tmp/hosts.json" . Or atleast try to open the URL in the browser to see if it is working for you before trying with the Curl command and then once you knwo that the file which you are attaching is of any use or not then you can attach it https://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name
... View more
02-06-2019
01:08 AM
attached file is corrupted.
... View more
02-06-2019
12:54 AM
@Tom Burke You can also open the same URL from the Browser where you have logged in the Ambari UI as well. http://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name . (OR)
You can use the following curl call to produce the JSON output to some
file like "/tmp/hosts.json". Also pleas emake sure to use the correct
cluster name in the same URL. # curl -k -H "X-Requested-By: ambari" -u admin:admin "http://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name" -o "/tmp/hosts.json" .
... View more