Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2452 | 04-27-2020 03:48 AM | |
4890 | 04-26-2020 06:18 PM | |
3977 | 04-26-2020 06:05 PM | |
3222 | 04-13-2020 08:53 PM | |
4928 | 03-31-2020 02:10 AM |
03-18-2017
03:49 AM
@vrathod
Please accept the thread, if you do not have any further query related to this HCC thread.
... View more
03-18-2017
12:21 AM
1 Kudo
@vrathod Do you have the following symlink present in the /usr/share/java directory to point to the mysql JDBC driver? # ls -l /usr/share/java | grep mysql
-rwxrwxrwx. 1 root root 992808 Mar 9 08:49 mysql-connector-java-5.1.41-bin.jar
lrwxrwxrwx. 1 root root 35 Mar 9 08:50 mysql-connector-java.jar -> mysql-connector-java-5.1.41-bin.jar . If the mysql connector jar is not present there then please refer to then following link and then install the driver and create the symlink: http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-reference/content/using_ambari_with_mysql.html
Install the connector # yum install mysql-connector-java
Confirm that .jar is in the Java share directory. # ls /usr/share/java/mysql-connector-java.jar Make sure the .jar file has the appropriatepermissions - 644. Execute the following command: ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar
... View more
03-17-2017
06:19 PM
@Param NC If your query in the hortonworks community is answered then in that case you can mark the closest answer as 'accepted' that's all. The thread will still remains open for others if they want to add some comments to it. There is no "Close" option.
... View more
03-17-2017
09:59 AM
1 Kudo
@ARUN The whole purpose of “balancer” utility is to help balance the blocks across DataNodes in the cluster. So it should do the job, if there is no major issue at the cluster level. It is usually recommend to run the balancer periodically during times when the cluster load is expected to be lower than usual. Also please refer to the following article that explains the importance of balancer and the performance improvement facts: https://community.hortonworks.com/articles/43615/hdfs-balancer-1-100x-performance-improvement.html You can run the HDFS balancer in Maintenance window as well as Without a Maintenance window. Few things you should keep in mind while running the balancer as mentioned in : https://community.hortonworks.com/articles/43849/hdfs-balancer-2-configurations-cli-options.html
... View more
03-16-2017
02:55 PM
2 Kudos
@Facundo Bianco You can try using the YARN APIs to kill an application. https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.6/bk_yarn_resource_mgt/content/ch_yarn_rest_apis.html Example: curl -v -X PUT -d '{"state": "KILLED"}''http://localhost:8088/ws/v1/cluster/apps/application_1409421698529_0012' . - But i suspect that it might also be in waiting state. - Do you see the RM log shows that the app had indeed transitioned from RUNNING to KILLED but still the client is showing "to be killed" then there is an issue and we might try tuning the "yarn.client.application-client-protocol.poll-timeout-ms" parameter : https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-common/yarn-default.xml
It's default value -1 means unlimited wait time.
... View more
03-16-2017
07:35 AM
2 Kudos
@Santhosh B Gowda I see that ambari finds out if the NameNode HA is enabled or not using the following logic: https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py#L295-L307 I did not find a direct Ambari API to findout "isHAEnabled" for HDFS. However we might use the following api to findout the state of the standby/active nodes. That will give an idea if HA is enabled or not. http://erie1.example.com:8080/api/v1/clusters/ErieCluster/host_components?HostRoles/component_name=NAMENODE&metrics/dfs/FSNamesystem/HAState=standby
http://erie1.example.com:8080/api/v1/clusters/ErieCluster/host_components?HostRoles/component_name=NAMENODE&metrics/dfs/FSNamesystem/HAState=active .
... View more
03-16-2017
03:32 AM
@Harold Allen Badilla It is better to place only one jar of the same type in the lib.. else if there is a bug assicoated with any particular version of the JAR then it will require further debugging to know the buggy class was loaded from jar1 or jar2. So i will suggest you to remove one duplicate jar from the lib.
... View more
03-15-2017
03:37 PM
@n c
While using web browser, You will need to open the http://AMBARI_SERVER_HOST:8080 URL first in the browser then it will ask for username or password . One you are authenticated then you can open the previously mentioned URL. http://AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services If you are using Curl or wget then you can simply use the following: curl -u $USER:$PASS -i -H 'X-Requested-By: ambari' -X GET http://AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services .
... View more
03-15-2017
02:55 PM
@n c
If you are accessing the URL: http://AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services/FALCON And getting 404 which means FALCON service is not installed on your cluster. You can list all the services that are installed on the cluster as following: http://AMBARI_SERVER_HOST:8080/api/v1/clusters/c1/services
... View more
03-15-2017
02:10 PM
@Claudia Volpetti Looks like somewhere the hostname settings on the ambari server host are not correct. Please check the "/etc/hosts" file to see if it has proper entries? Also check if the output of the following command shows the desired FQDN? # hostname -f . In your case ambari is failing to resolve the Hostname at: https://github.com/apache/ambari/blob/release-2.4.2/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java#L339 So please fix the hostname on the host where you are running the AmbariServer. . Setting correct hostname /FQDN is one of the prerequisite: https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/edit_the_host_file.html And https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/edit_the_network_configuration_file.html
... View more