Member since
07-18-2017
10
Posts
0
Kudos Received
0
Solutions
07-08-2019
02:35 PM
Thanks @Akhil S Naik , I'm able to pass the parameters now. However, there is a problem i'm facing when i'm submitting the request with "Requests/resource_filters". If i do the below, the custom script is executed but, it gets executed on all hosts instead of only server1 and server2: -d '{"RequestInfo":{"context":"Execute an action", "action" : "stream_file", "parameters" : {"file" : "/hadoop_mount/hdfs.tar.gz"},"service_name" : "", "component_name":"", "hosts":"server1,server2"}}' http://ambari-server:8080/api/v1/clusters/<clustername>/requests To resolve this i added below as per from your above sample: -d '{"RequestInfo":{"context":"Execute an action", "action" : "stream_file", "parameters" : {"file" : "/hadoop01/hdfs.tar.gz"}},"Requests/resource_filters":[{"service_name" : "", "component_name":"", "hosts":"server1,server2"}]}' http://ambari-server:8080/api/v1/clusters/<clustername>/requests But when i submit this, even though the command goes to only the required hosts, it just goes into hung state (grey colored gears - Execution doesn't start at all.) Any idea on what might be blocking the execution ? With Regards, Narendra To the users who will come here in future, the parameter you passed will be available from the configs (config = Script.get_config()) inside your code and at config['roleParams']['my_input'] to be precise.
... View more
06-10-2019
12:57 PM
The above question and the reply below was originally posted in the Community Help Track. On Mon Jun 10 12:55 UTC 2019, a member of the HCC moderation staff moved it to the Cloud & Operations track. The Community Help Track is intended for questions about using the HCC site itself.
... View more
12-06-2018
09:47 PM
Because of this below property in core-site.xml, it works for you hadoop.security.auth_to_local The mapping rules. For example: RULE:[2:$1@$0]([jt]t@.*EXAMPLE.COM)s/.*/mapred/ RULE:[2:$1@$0]([nd]n@.*EXAMPLE.COM)s/.*/hdfs/ RULE:[2:$1@$0](hm@.*EXAMPLE.COM)s/.*/hbase/ RULE:[2:$1@$0](rs@.*EXAMPLE.COM)s/.*/hbase/ DEFAULT The mapping from Kerberos principal names to local OS user names. See Creating Mappings Between Principals and UNIX Usernames for more information.
... View more
11-07-2018
08:16 PM
@Narendra Neerukonda Awesome... I am glad that I could help. Be sure to accept my answer to close out this issue.
... View more