Member since
09-11-2016
1
Post
0
Kudos Received
0
Solutions
10-18-2018
08:29 PM
When querying Hive table from Zeppelin notebook using spark2 interpreter, I can show tables in Hive without error using the following commands: %spark2 val sqlContext = new org.apache.saprk.sql.hive.HiveContext(sc) val tables = sqlContext.sql("show tables") tables.show(2) But I cannot query Hive table, when I tried to run the following statement, got error: sqlContext.sql("select * from t1 LIMIT 10").collect().foreach(println) java.lang.IllegalArgumentException:java.net.UnknownHostException: dev (see attached image for more info) My cluster name is Dev. Is that due to case-sensitive?
... View more
Labels:
- Labels:
-
Apache Hive
-
Apache Spark
-
Apache Zeppelin