Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.0.1, 2.1.0
-
None
-
None
-
CentOS 6.5,spark 2.1 build with mvn -Pyarn -Phadoop-2.6 -Dhadoop.version=2.6.0 -Phive -Phive-thriftserver -Dscala-2.11
Description
suppose the content of file test.sql:
-------------------------------------------------
!connect jdbc:hive2://localhost:10000 test test
USE ${hivevar:db_name};
-------------------------------------------------
when execute beeline command: bin/beeline -f /tmp/test.sql --hivevar db_name=offline
the output is:
------------------------------------------------------------------------------------
Error: org.apache.spark.sql.catalyst.parser.ParseException:
no viable alternative at input '<EOF>'(line 1, pos 4)
== SQL ==
use
----^^^ (state=,code=0)
-------------------------------------------------------------------------------------
so the parameter --hivevar can not be read from beeline CLI.
Attachments
Issue Links
- duplicates
-
SPARK-13983 HiveThriftServer2 can not get "--hiveconf" or ''--hivevar" variables since 1.6 version (both multi-session and single session)
- Resolved
- links to