Member since
07-31-2019
3
Posts
0
Kudos Received
0
Solutions
06-18-2018
03:04 PM
Hello @Saurabh Ambre, The error message you are getting is caused by a version mismatch between the client library you are compiling with and the server version of HDFS running. e.g. Using version 3.1 of the client JARs with version 2.7 of the server. ==> What version of HDP are you using? Hortonworks provides Maven repos you can use in your Java IDE to facilitate getting the correct librairies. See here : https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_command-line-installation/content/download_hdp_maven_artifacts.html
... View more
06-18-2018
02:59 PM
Hello @rama Are you issuing the "alter table [table name] add partition [partition name and value]" command? When dealing with external tables (or manually adding data to a managed table.. i.e. adding a file on hdfs), you need to manually tell hive that there's a new partition. Paul's suggestion to running "msck repair table" triggers a automatic partition discovery. I would suggest : 1-When adding a new partition, issue the above alter table statement. 2-If you forgot to do step #1, issue a msck command to recover all missing partitions. Makes sense?
... View more