HI All, I have a data in HDFS partition with Year/month/data/event_type. And I am creating a hive tables with this data, this data is in JSON so I am using json serve and creating hive tables. below is the code val jsonFile = hiveContext.read.json("hdfs://localhost:9000/housing/events_real/category=Impressions/date=1007465766/*") jsonFile.toDF().printSchema() jsonFile.write.saveAsTable("JsonFileTable") jsonFile.toDF().printSchema() val events = hiveContext.sql("SELECT category, uid FROM JsonFileTable") events.map(e => "Event: " + e).collect().foreach(println)
saveAstable failing with Error saying MKDir failed to create the directory ,anybody has any idea?