let's say I create table using below command

create table csvTable ..... using CSV options (path
"/user/data/customer.csv");

Crate Table command executes successfully irrespective of the presence of
file(/user/data/customer.csv)

If I try to insert some rows into this table it fails with below message

org.apache.hadoop.fs.ParentNotDirectoryException: /user/datat/customer.csv
(is not a directory)
        at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkIsDirectory(FSPermissionChecker.java:530)
        at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkSimpleTraverse(FSPermissionChecker.java:522)
        at
org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkTraverse(FSPermissionChecker.java:497)
        at
org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1619)
        at
org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkTraverse(FSDirectory.java:1637)
        at
org.apache.hadoop.hdfs.server.namenode.FSDirectory.resolvePath(FSDirectory.java:558)
                

Now the question why insert should fail ?

Is there any specific use case for this kind of a scenario



--
Sent from: http://apache-spark-developers-list.1001551.n3.nabble.com/

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Reply via email to