Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2442 | 04-27-2020 03:48 AM | |
4877 | 04-26-2020 06:18 PM | |
3975 | 04-26-2020 06:05 PM | |
3217 | 04-13-2020 08:53 PM | |
4923 | 03-31-2020 02:10 AM |
08-21-2019
04:53 PM
@harry_li You just posted a Community Thread successfully. So are you able to post new topics now without any issue? Are you posting contents with some external links Or special characters ? Can you try posting a Test Topic and then if you find any error then can you please share the error that you are getting?
... View more
08-21-2019
04:35 PM
@nanibigdata1 Are you talking about Azure Scale Down approach in which Azure deletes the unwanted hosts from the cluster when they are not needed ? Ideally Azure should take care of deleting unwanted hosts from ambari as well. But if that is not happening then pcan you please help in understanding what is happening? 1. How was the node deleted from Azure? Using scale down approach or just deleted the node manually? 2. Before deletion of a Node from ambari cluster it is needed to first decommission the components running on the node like (Datanode, Nodemanager ..etc), If node has Master components then it needs to be moved to other node first. Then the components are stopped and then the components/host is deleted safely. So is it not happening at your end? 3. Do you see that even after the steps mentioned in point-2 the Host is still being listed in the "hosts" table of ambari OR being listed in the Ambari API call? # curl -u admin:admin -H "X-Requested-By:ambari" -X GET http://$AMBRI_FQDN:8080/api/v1/clusters/$CLUSTER_NAME/hosts
(OR) from ambari Database by running the following query:
# SELECT * FROM hosts; Something Similar but not for Azure Env so please do not follow it as it is: https://community.cloudera.com/t5/Support-Questions/How-can-I-delete-the-host-from-ambari-server/m-p/206396 *NOTE:*. If Azure has scaled down the ambari cluster (means removes some nodes from Ambari Cluster) But by any chance that host still running the ambari-agent then the agent might keep sending the registration request & heartbeat to ambari server. So please check if you still see the following kind of messages in your ambari-server.log even after the node is moved out of the ambari cluster. How usually logging appears in ambari-server.log when a node is deleted from cluster: Decommissioning DATANODE on example.host1.com
Decommissioning NODEMANAGER example.host1.com
Received Delete request for host example.host1.com from cluster ExampleCluster.
Removing hosts [[example.host1.com]] from available hosts on hosts removed event. But after the above messages if you still see the following kind of message appear in ambari-server.log. "Agent is still heartbeating" then it indicates that the Ambari Agent is still running on the node which is removed from the cluster and hence will be keep sending the registration/heartbeat request to ambari server so you might see an entry in the "hosts" table in ambari DB for that host. In this case ideally Azure or your whatever should have stopped the ambari-agent properly on the node immediately after host deletion. HeartBeatHandler:185 - Host: example.host1.com not found. Agent is still heartbeating.
Received host registration, host=[hostname=example.host1.com,.............,agentVersion=2.x.y.x
TopologyManager.onHostRegistered: Entering So if you still see that even after the Azure Node deletion it is keep showing the old host in ambari then it might be because the agent was keep running even after deletion for some time.
... View more
08-21-2019
05:31 AM
@Manoj690 Not the same output as mine. Please notice that, In your case that file is being owned by "root" user. Not the "hdfs" user. So please try this: # chown hdfs:hadoop /hadoop/hdfs/namenode/current/VERSION
(OR recursively)
# chown -R hdfs:hadoop /hadoop/hdfs/
... View more
08-21-2019
05:27 AM
@kiranps11 Can you please share the output of the following command? This is because the path may be correct and file might be existing. Additional Possibilities: 1. The other possibility is that the File may not be readable by the Nifi Process. # ls -lart /Users/kiran/Downloads/mysql/mysql-connector-java-8.0.17.jar So can you please double check if the use who is running the NiFi process has access to this JAR and the permission on this JAR are correct? 2. The JAR may be a corrupted jar so NiFi process might not be able to read the driver class from this jar. So please list the classes present inside this JAR using the following command.. or try to grep the class. Example: Try to check the existence of this class in the JAR, By the same user who is running the NiFi process. # /usr/jdk64/jdk1.8.0_112/bin/javap -cp/Users/kiran/Downloads/mysql/mysql-connector-java-8.0.17.jar com.mysql.jdbc.Driver
Compiled from "Driver.java"
public class com.mysql.jdbc.Driver extends com.mysql.jdbc.NonRegisteringDriver implements java.sql.Driver {
public com.mysql.jdbc.Driver() throws java.sql.SQLException;
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException;
static {};
}
... View more
08-21-2019
05:14 AM
@Manoj690 We see the error as following: java.io.FileNotFoundException: /hadoop/hdfs/namenode/current/VERSION (Permission denied) So that is causing the NameNode startup failure. Please check and fix the permission on the mentioned file so that the Owner of the NameNode process will have read / write access to this file. Normally it is owned by hdfs user. Example: # ls -l /hadoop/hdfs/namenode/current/VERSION
-rw-r--r--. 1 hdfs hadoop 206 Aug 13 23:10 /hadoop/hdfs/namenode/current/VERSION
... View more
08-21-2019
05:00 AM
@Manoj690 You can find NameNode logs here: # less /var/log/hadoop/hdfs/hadoop-hdfs-namenode-gaian-lap386.com.log
# less /var/log/hadoop/hdfs/hadoop-hdfs-namenode-gaian-lap386.com.out Similarly you can find the DataNode logs somewhere "/var/log/hadoop/hdfs/hadoop-hdfs-datanode-xxxxxxx.log" Can you please attach those logs here. Or please share the erros from the mentioned files. (preferred is to attach the files here)
... View more
08-21-2019
04:53 AM
@Manoj690 Looks like the NameNode is not starting successfully. Can you please check and share the NameNode logs. It looks like a similar thread is also opened by you here: https://community.cloudera.com/t5/Support-Questions/In-ambari-all-my-servies-are-down/m-p/268512/highlight/false#M206243 Please use the same troubleshooting steps to collect the data for troubleshooting. For example Please check if the NameNode is running or not? # ps -ef | grep -i NameNode If NameNode port is listening on 50070? # netstat -tnlpa | grep 50070 If not then please check and share the NameNode log. If possible then try to attach the Full NameNode logs.
... View more
08-21-2019
02:14 AM
@Manoj690 While adding a new Node to ambari cluster it checks various things like existing HDP users / if any HDP related process is already running on the host.... So please check those hosts listed in the WARNING message and then SSH to those hosts if needed stop OR kill those Processes (if those are not needed currently). Else ignore the warning and then retry from Ambari UI. But better to stop those WARNING listed processes for now.
... View more
08-21-2019
02:10 AM
@Manoj690 If Ambari Server is up and running now then can you mark this thread as closed. The other threads regarding MySQL + Ambari connectivity are here: https://community.cloudera.com/t5/Support-Questions/ambari-server-problem-3/m-p/268500/highlight/false#M206233 https://community.cloudera.com/t5/Support-Questions/ambari-server-problem-2/m-p/268487#M206225
... View more