Member since
04-16-2019
373
Posts
7
Kudos Received
4
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
23937 | 10-16-2018 11:27 AM | |
7988 | 09-29-2018 06:59 AM | |
1225 | 07-17-2018 08:44 AM | |
6800 | 04-18-2018 08:59 AM |
11-28-2017
01:33 PM
@Anurag Mishra, Can you make a small change to @Jay Kumar SenSharma's script as below and run the script and paste the output from subprocess import Popen, PIPE, STDOUT
p = Popen("mount", stdout=PIPE, stderr=STDOUT, shell=True)
out,err = p.communicate()
print "return code is :: " + str(p.returncode)
if out:
print "stdout is :: " + out
if err:
print "stderr is :: " + err
... View more
11-10-2017
08:21 AM
@Anurag Mishra, Run your script as below sh myscript.sh > output.txt 2>&1 Thanks, Aditya
... View more
11-07-2017
11:44 AM
@Anurag Mishra Can you please share the complete error that you are getting? Also little detail about what your script is doing? It might be the HDFS directory where the user "yarn" is trying to write and does not have write permission. If that is the case then you might want to give write permission to the "yarn" user to that HDFS directory. # su - hdfs -c "hdfs dfs -chmod 777 /PATH/WHERE/YARN/USER/IS/WRITING
(OR)
# su - hdfs -c "hdfs dfs -chown -R yarn:hadoop /PATH/WHERE/YARN/USER/IS/WRITING .
... View more
09-08-2017
07:38 AM
@Anurag Mishra - You will need to pass all the previous user privilege details as well along with the new user when you want to edit the list using API call: Example if you already have users privilleges for "123jay", "jay". Now you want to add another user "jayyarn" in the privilleges list then you should PUT the whole list again. Example: curl -i -u $Ambariadmin:$ambaripass -H "X-Requested-By: ambari" -X PUT -d '[{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"123jay","principal_type":"USER"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"jay","principal_type":"USER"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"jayyarn","principal_type":"USER"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"CLUSTER.ADMINISTRATOR","principal_type":"ROLE"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"CLUSTER.OPERATOR","principal_type":"ROLE"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"SERVICE.OPERATOR","principal_type":"ROLE"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"SERVICE.ADMINISTRATOR","principal_type":"ROLE"}},{"PrivilegeInfo":{"permission_name":"VIEW.USER","principal_name":"CLUSTER.USER","principal_type":"ROLE"}}]' http://localhost:8080/api/v1/views/$viewname/versions/$version/instances/$instance/privileges .
... View more
09-04-2017
05:58 AM
@Jay SenSharma I am able to download client config files but one problem I am facing is that only those client configs are downloadable which are present in that localhost, but I wanted to download all client configs present in whole cluster, which rest api should I use to achieve same ?
... View more
08-30-2017
03:56 PM
@Anurag Mishra You should use extra single quotes as "'${password}'" and "'${username}'" Notice: "'${password}'" And "'${username}'" Example: # export username=test112233
# export password=test112233_password
# export Ambariuser=admin
# export ambaripass=admin
# curl -iv -u $Ambariuser:$ambaripass -H "X-Requested-By: ambari" -X POST -d '{"Users/user_name":"'${username}'","Users/password":"'${password}'","Users/active":"true","Users/admin":"false"}' http://localhost:8080/api/v1/users . Output: .
... View more
08-10-2017
07:37 AM
@Anurag Mishra First
check the value of `zookeeper.znode.parent` in HBase. Set it to the same value in Ambari, Kill all the metrics
processes running on the node. `ps -ef | grep
metrics` and kill all of them as they were caching the `/hbase` value. Watch
the ambari metrics collector logs (
/var/log/ambari-metrics-collector/ambari-metrics-collector.log) while you do
the below steps Steps: 0. tail -f
/var/log/ambari-metrics-collector/ambari-metrics-collector.log 1.
Stop Ambari 2.
Kill all the metrics processes 3.
curl --user admin:admin -i -H "X-Requested-By: ambari" -X DELETE
http://`hostname -f`:8080/api/v1/clusters/CLUSTERNAME/services/AMBARI_METRICS =>
Make sure you replace CLUSTERNAME with your cluster name 4.
Refresh Ambari UI 5.
Add Service 6.
Select Ambari Metrics 7.
In the configuration screen, make sure to set the value of
`zookeeper.znode.parent` to what is configured in the HBase service. By default
in Ambari Metrics it is set to empty value. 8.
Deploy In embedded mode then hbase.cluster.distributed should be
false, and hbase.rootdir set to a local directory using the "file://"
scheme.
... View more
07-20-2017
02:34 PM
2 Kudos
@Anurag Mishra Hi You can use the following properties: Note: These settings can be accessed from Ambari > YARN > Configs > Scheduler or in conf/capacity-scheduler.xml.
--1. For adding users who can submit jobs
<property>
<name>yarn.scheduler.capacity.root.test.acl_submit_applications</name>
<value>user1 group1, user2, user3 group 2</value>
<description> The ACL of who can submit jobs to the test queue. </description>
</property>
--2. For administering a queue
<property>
<name>yarn.scheduler.capacity.root.test.acl_administer_queue</name>
<value>user5 group5</value>
<description> The ACL of who can administer jobs on the test queue.</description>
</property>
... View more
07-17-2017
07:13 PM
5 Kudos
Hi @Anurag Mishra, If you want to change yarn-site.xml in the server, then it is also fine. But you need to restart the services on your own instead of using ambari .(if you use ambari to restart services, then as mentioned by Jay, your changes will get wiped off) WARNING : It so happens, that for some properties in yarn-site.xml, it requires restart of more than one service , in which case, you need to copy the change in all service nodes and restart them. ADVANTAGE OF AMABRI - In case of ambari, its just one point change, it will figure out which services require that change and suggest restart of all the services required.
... View more
07-13-2017
12:43 PM
can you tell me how to filter details from above output like i want to get application id, aplication type, state, &startedTime, memory usage
... View more
- « Previous
- Next »