Accessing Shark tables (Hive) from Scala (shark-shell)
问题 I have shark-0.8.0 which runs on hive-0.9.0 . I am able to program on Hive by invoking shark . I created a few tables and loaded them with data. Now, I am trying to access the data from these tables using Scala . I invoked the Scala shell using shark-shell . But when I try to select, I get an error that the table is not present. scala> val artists = sc.sql2rdd("select artist from default.lastfm") Hive history file=/tmp/hduser2/hive_job_log_hduser2_201405091617_1513149542.txt 151.738: [GC