Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2729 | 04-27-2020 03:48 AM | |
| 5287 | 04-26-2020 06:18 PM | |
| 4457 | 04-26-2020 06:05 PM | |
| 3583 | 04-13-2020 08:53 PM | |
| 5383 | 03-31-2020 02:10 AM |
09-08-2017
09:10 AM
@Nilesh Shrimant Good to know that your issue is resolved. It will be wonderful if you can make the correct answer as "Accepted" so that it will be useful for other HCC users to quickly browse the answered threads.
... 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-08-2017
04:36 AM
@Nilesh Shrimant According to the JDBC Driver implementation it can take SID as well like, If the database to which you want to connect resides on host prodHost, at port 1521, and system identifier (SID) ORCL, and you want to connect with user name scott and password tiger, then use either of the two following connection strings: Using host:port:sid
syntax:
String connString="jdbc:oracle:thin:@prodHost:1521:ORCL"; NOTICE: After Port there is a Colon (:) and then SID. https://docs.oracle.com/cd/B28359_01/java.111/b31224/jdbcthin.htm Are you getting any error while using SID in the same URL ?
... View more
09-08-2017
02:32 AM
@Hajime I just tried downloading the "4811-custom-alerts.zip" and i can extract it properly. How are you downloading it. $ md5 4811-custom-alerts.zip
MD5 (4811-custom-alerts.zip) = a33f105860d07e05149b68960a0ea0c9 .
... View more
09-06-2017
07:19 AM
1 Kudo
@Shreya Gupta core-site.xml & hdfs-site.xml are the important ones. Hadoop’s Java configuration is driven by two types of important configuration files:
Read-only default configuration core-default.xml, hdfs-default.xml, yarn-default.xml and mapred-default.xml. Site-specific configuration - core-site.xml, hdfs-site.xml, yarn-site.xml and mapred-site.xml. https://hadoop.apache.org/docs/r2.7.3/hadoop-project-dist/hadoop-common/ClusterSetup.html#Configuring_Hadoop_in_Non-Secure_Mode
... View more
09-04-2017
05:20 PM
@John Wright As the "Requires: libtirpc-devel" issue is slightly different from the proxy issue. So i will suggest closing this thread by marking the thread as "Accepted" , So that other users will not get confused with other issues and can directly browse the answer quickly.
... View more
09-04-2017
04:37 PM
@John Wright One of my thread has similar issue: https://community.hortonworks.com/questions/109996/hdp-26-requires-libtirpc-devel.html for your query related to: Error: Package: hadoop_2_6_2_0_205-hdfs-2.7.3.2.6.2.0-205.ppc64le (HDP-2.6)
Requires: libtirpc-devel
... View more
09-04-2017
04:23 PM
@uri ben-ari Because there is & symbol in the API call to Shell is taking it differently. So to avoid that please put the whole URL inside Quotation mark as following: # curl -H "X-Requested-By: ambari" -u admin:admin -X GET "http://localhost:8080/api/v1/clusters/Sandbox/components?fields=ServiceComponentInfo/component_name,ServiceComponentInfo/service_name,ServiceComponentInfo/categoy,ServiceComponentInfo/recovery_enabled,ServiceComponentInfo/total_count&minimal_response=true" .
... View more
09-04-2017
04:16 PM
@uri ben-ari It's a type mistake , please remove the <br> curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://localhost:8080/api/v1/clusters/Sandbox/components?fields=ServiceComponentInfo/component_name,ServiceComponentInfo/service_name,ServiceComponentInfo/category,ServiceComponentInfo/recovery_enabled,ServiceComponentInfo/total_count&minimal_response=true .
... View more
09-04-2017
04:05 PM
@uri ben-ari To get all the components "recovery_enabled" status: curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://localhost:8080/api/v1/clusters/Sandbox/components?fields=ServiceComponentInfo/component_name,ServiceComponentInfo/service_name,ServiceComponentInfo/category,ServiceComponentInfo/recovery_enabled,ServiceComponentInfo/total_count&minimal_response=true<br>;
... View more