Member since
11-07-2016
637
Posts
253
Kudos Received
144
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2234 | 12-06-2018 12:25 PM | |
2295 | 11-27-2018 06:00 PM | |
1783 | 11-22-2018 03:42 PM | |
2846 | 11-20-2018 02:00 PM | |
5160 | 11-19-2018 03:24 PM |
10-16-2017
08:28 AM
@Yair Ogen, I wrote the comment as a separate answer. Can you please accept that. Thanks, Aditya
... View more
10-16-2017
08:28 AM
1 Kudo
@Yair Ogen, I did a find for hive-jdbc jars and got the below result. Check if any of the paths exist in your setup /usr/hdp/2.6.2.0-205/spark2/jars/hive-jdbc-1.21.2.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/hive/lib/hive-jdbc.jar
/usr/hdp/2.6.2.0-205/hive/lib/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/hive/jdbc/hive-jdbc-1.2.1000.2.6.2.0-205-standalone.jar
/usr/hdp/2.6.2.0-205/hive2/lib/hive-jdbc-2.1.0.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/hive2/lib/hive-jdbc.jar
/usr/hdp/2.6.2.0-205/hive2/jdbc/hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar
/usr/hdp/2.6.2.0-205/oozie/share/lib/hive2/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/oozie/libserver/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/oozie/libtools/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/zeppelin/interpreter/jdbc/hive-jdbc-1.2.1000.2.6.2.0-205.jar Thanks, Aditya
... View more
10-16-2017
08:04 AM
@Yair Ogen, Did this help you. Can you please accept the answer if it worked for you. That will help the community to find out answers quickly
... View more
10-16-2017
07:39 AM
@Yair Ogen
I guess you are running it through beeline without passing the -n (username) param. You need to create /user/anonymous folder and change permissions as mentioned above to make it work. Or pass the valid username. Thanks, Aditya
... View more
10-16-2017
05:27 AM
@Yair Ogen, Your directory has below permissions. User anonymous doesn't have write permissions on the folder /user/anonymous : hdfs:hdfs:drwxr-xr-x Change the ownership of the directory or give write permissions on the dir 1) hdfs dfs -chmod 777 /user/anonymous 2)hdfs dfs -chown anonymous:hdfs /user/anonymous Thanks, Aditya
... View more
10-16-2017
05:04 AM
@Neha G You can use the basic hdfs commands to achieve this. hdfs dfs -copyFromLocal <local file system path> <hdfs path> - to copy files from local to hdfs hdfs dfs -copyToLocal <hdfs path> <local fs path> - copy from hdfs to local hdfs dfs -put <local file system path> <hdfs path> - to copy files from local to hdfs hdfs dfs -get <hdfs path> <local fs path> - copy from hdfs to local hdfs dfs -ls <path> - list the files. Check this link for more commands. https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html Make sure to run kinit with hdfs keytab before running the above commands as it is a secure enviroment ( kinit -kt /etc/security/keytabs/hdfs.headless.keytab <principal>) If you don't know the value of principal , you can run the below command and get it [root@xxxxx ~]# klist -kte /etc/security/keytabs/hdfs.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp Principal
---- ----------------- --------------------------------------------------------
1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (aes128-cts-hmac-sha1-96)
1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (arcfour-hmac)
1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (des-cbc-md5)
1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (des3-cbc-sha1)
1 09/10/17 14:06:14 hdfs@EXAMPLE.COM (aes256-cts-hmac-sha1-96) In the above output hdfs@EXAMPLE.COM is the principal, so your kinit command would be kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs@EXAMPLE.COM Note : You can also use ambari files view to do these operations. GUI would be easy. Thanks, Aditya
... View more
10-16-2017
04:13 AM
@Neha G, Glad that it worked for you. Can you please accept the answer and start a new thread for this so that the main thread doesn't get deviated. Please share more logs related to the alerts in the new thread. Thanks, Aditya
... View more
10-16-2017
02:16 AM
1 Kudo
@Neha G, Is your hostname exactly "nhknox-Virtual-Machine.mad.lab" or "nhknox-virtual-machine.mad.lab". We have seen issues where hostname in Mixed case has caused issues. If that is the case for you, change the hostname to all small letters and restart ambari server and then try restarting the namenode. If your hostname has all small letters, can you please paste your namenode logs under (/var/log/hadoop-hdfs/hdfs) Thanks, Aditya
... View more
10-16-2017
02:12 AM
1 Kudo
@Ivan Majnaric, Did you try running sqlline.py. It will create the tables for you. (/usr/hdp/current/phoenix-client/bin/sqlline.py) Thanks, Aditya
... View more
10-15-2017
02:12 PM
@Yair Ogen, I did a find for hive-jdbc jars and got the below result. Check if any of the paths exist in your setup. /usr/hdp/2.6.2.0-205/spark2/jars/hive-jdbc-1.21.2.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/hive/lib/hive-jdbc.jar
/usr/hdp/2.6.2.0-205/hive/lib/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/hive/jdbc/hive-jdbc-1.2.1000.2.6.2.0-205-standalone.jar
/usr/hdp/2.6.2.0-205/hive2/lib/hive-jdbc-2.1.0.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/hive2/lib/hive-jdbc.jar
/usr/hdp/2.6.2.0-205/hive2/jdbc/hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar
/usr/hdp/2.6.2.0-205/oozie/share/lib/hive2/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/oozie/libserver/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/oozie/libtools/hive-jdbc-1.2.1000.2.6.2.0-205.jar
/usr/hdp/2.6.2.0-205/zeppelin/interpreter/jdbc/hive-jdbc-1.2.1000.2.6.2.0-205.jar Thanks, Aditya
... View more