I created a UDF and exported the jar as abc.jar.
Copied the jar in hdfs at /user/hive/warehouse.
Now, I am getting below errors:
hive> ADD JAR /user/hive/warehouse/abc.jar;
/user/hive/warehouse/abc.jar does not exist
Query returned non-zero code: 1, cause: /user/hive/warehouse/abc.jar does not exist.
hive>
When I do, hadoop fs -ls /user/hive
, I can see abc.jar at /user/hive/warehouse path.
Where am I doing wrong and what is the solution for this?
The way, you are mentioning the path, it will look the file in local file system.
Either place it there, or use hdfs:// like this