Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2440 | 04-27-2020 03:48 AM | |
4870 | 04-26-2020 06:18 PM | |
3975 | 04-26-2020 06:05 PM | |
3212 | 04-13-2020 08:53 PM | |
4918 | 03-31-2020 02:10 AM |
09-27-2019
05:20 AM
@irfangk1 Was your query answered? If your question is answered then, Please make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Please revert back if you have any followup query in this thread. That way we can find the solution/answer that way other community users can get the benefit.
... View more
09-27-2019
05:15 AM
@irfangk1 Is this issue resolved? Looks like you have abandoned this thread. Please revert back if you have found the solution that way other community users can get the solution Or please share the requested informations to continue the discussion..
... View more
09-25-2019
09:22 PM
@irfangk1 Looks like the SmartSense service installation is failing for you. Failed to execute command: dpkg-query -l | grep 'ii\s*smartsense-*' || apt-get -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install smartsense-hst || dpkg -i /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SMARTSENSE/package/files/deb/*.deb; Exit code: 1; stdout: ; stderr: E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
dpkg: error processing archive /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SMARTSENSE/package/files/deb/*.deb (--install):
cannot access archive: No such file or directory Thats the reason later at Step9 the services are failing to start because smartsense service binaries (due to package installation failure) are not present. INFO 2019-09-24 16:06:03,584 ComponentStatusExecutor.py:172 - Status command for HST_AGENT failed:
Failed to execute command: /usr/sbin/hst agent-status; Exit code: 127; stdout: ; stderr: /bin/sh: 1: /usr/sbin/hst: not found Better to skip and proceed the Step9 by clicking Next/Proceed/OK/Complete kind of button in UI and then later verify on the Host where the SmartSense package is supposed to be install and failing to install. Check if the repo is fine and if you are manually able to install the SmartSesne binary on that host? It might be some ambari repo access issue on that node where the SmartSense installation failed. Better to check and share the exact OS version and the ambari repo version. Like based on the ambari version please get the correct repo something like: # wget -O /etc/apt/sources.list.d/ambari.list <a href="http://public-repo-1.hortonworks.com/ambari/XXXXXXXXXXXXXX/updates/2.7.3.0/ambari.list" target="_blank">http://public-repo-1.hortonworks.com/ambari/XXXXXXXXXXXXXX/updates/2.7.3.0/ambari.list</a>
# apt-get clean all
# apt-get update You can get the correct ambari REPO URL from the following kind of links: https://docs.cloudera.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-upgrade-major/content/upgrade_ambari.html . .
... View more
09-25-2019
06:38 PM
@irfangk1 It is really too less information to comment anything on this . Or to guess what might be happening. Can you please provide more detailed information about your issue? 1. When are you noticing such error? 2. In which Log you see this message ? Can you share the complete log? 3. The product that you are using and the Product version like Ambari version / HDP version ...etc 4. A full stackTrace of the error.
... View more
09-23-2019
10:16 PM
@irfangk1 Can you please share the files: /var/lib/ambari-agent/data/output-423.txt
/var/lib/ambari-agent/data/errors-423.txt And if possible then the ambari-agent.log from the cluster node where the above files are generated. You can find the host details where the operation failed by looking at the ambari UI operational logs.
... View more
09-20-2019
03:37 PM
@rvillanueva After making the changes inside the Correct "pg_hba.conf" file have you restarted the Postgres Database? # /etc/init.d/postgresql restart
(OR)
# systemctl start postgresql Also what is your Postgres Version like (10.5 / 10.2 / 9.6) ? SupportMatrix: https://supportmatrix.hortonworks.com/ Based on the Postgres Version the "pg_hba.conf" location might be slightly different like: /var/lib/pgsql/9.6/data/pg_hba.conf
/var/lib/pgsql/data/pg_hba.conf
..etc So please make sure that the changes you are making in the "pg_hba.conf" is actually the correct file.
... View more
09-19-2019
12:14 AM
1 Kudo
@rajesh1972 The maven artifact : "hbase-common:1.1.2" which provides the following JAR does. not seems to contain that class "org.apache.hadoop.hbase.types.CopyOnWriteArrayMap" ... you can check this JAR .. https://repo1.maven.org/maven2/org/apache/hbase/hbase-common/1.1.2/hbase-common-1.1.2.jar So can you please try changing the version of the artifact to 2.0.0 . (instead of 1.1.2) and then see if that works for you? Example: <dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies> . If your question is answered then, Please make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. .
... View more
09-18-2019
10:19 PM
@rajesh1972 Can you please share your "pom.xml" file so that we can check the dependencies which you are including here? Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.types.CopyOnWriteArrayMap The problematic/missing class "org.apache.hadoop.hbase.types.CopyOnWriteArrayMap" is part of "hbase-common.jar" JAR so please make sure that your "pom.xml" file contains the dependency to that maven artifact as well. The "hbase-server" artifact provides the dependency to hbase-common jar. Example: <dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies> Please Notice: <dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<version>${hbase.version}</version>
</dependency>
(OR)
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId>
<version>${hbase.version}</version>
</dependency> You can refer to a working pom.xml in my Github repo: https://github.com/jaysensharma/MiddlewareMagicDemos/tree/master/HDP_Ambari/HBase/HBase_Client hbase-server maven artifact provides the dependency to hbase-common so please include the dependency # mvn dependency:tree | grep -B3 hbase-common
[INFO] +- org.apache.hbase:hbase-server:jar:1.1.2.2.5.3.0-37:compile
[INFO] | +- org.apache.hbase:hbase-common:jar:1.1.2.2.5.3.0-37:compile . .
... View more
09-18-2019
05:59 AM
1 Kudo
@ThanhP Good to know that the issue is resolved. If your question is answered then, Please make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
... View more
09-15-2019
06:33 AM
@ThanhP The following error indicates that Ambari is not able to connect to the MySQL DB instance. Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Most possible cause might be either there is some network issue of your MySQL might not be running properly (running with errors). We might need to review Mysql side log as well. Checks from AmbariServer Host side So can you please check if you have entered correct DB url in ambari.properties? Can you please share the following output? # grep 'jdbc' /etc/ambari-server/conf/ambari.properties In the output of the above command we shoudl be able to see the MySQL DB details like user/URl/driver ..etc Can you please try running the following simple JDBC connectivity check from Ambari DB host to the MySQL instance? # /usr/jdk64/jdk1.8.0_112/bin/java -cp /var/lib/ambari-server/resources/DBConnectionVerification.jar:/usr/share/java/mysql-connector-java.jar org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://xxxxxxxxx/ambari" "ambariDBUser" "ambariDBPassword" com.mysql.jdbc.Driver You will need to change the 'ambariDBUser'/ 'ambariDBPassword' and DB url based on the ambari.properties entries. Also from the ambari server host can you please check if the MySQL host&port is accessible without any issue? This is to isolate if the MySQL host & port is accessible from Ambari server host? # telnet $MYSQL_HOSTNAME 3306
(OR)
# nc -v $MYSQL_HOSTNAME 3306 Checks from MySQL DB side Please try to restart MySQL DB once. Check if the MySQL is listening to the correct port ? (default port is 3306) # ps -ef | grep mysql
# netstat -tnlpa | grep 3306
# netstat -tnlpa | grep `cat /var/run/mysqld/mysqld.pid` For any errors on Mysql side we can check the MySQL log like '# less /var/log/mysqld.log'
... View more