Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting thrift server in spark

Can anyone help me with starting spark thrift server? I am running my script in standalone mode and I want to fetch data in my business intelligence tool.

In order to do that I need to start thrift server. I tried running shell script:

$SPARK_HOME/sbin/start-thriftserver.sh

but I get an error:

error "ps unknown option --0"

like image 308
Bhanuday Birla Avatar asked Sep 03 '25 03:09

Bhanuday Birla


1 Answers

In Spark 2.2.1

cd %SPARK_HOME%\bin
spark-class org.apache.spark.deploy.SparkSubmit --class org.apache.spark.sql.hive.thriftserver.HiveThriftServer2 spark-internal

this started the spark thrift server in windows. In another terminal run the below beeline command to open a jdbc connection

cd %SPARK_HOME%\bin
beeline -u jdbc:hive2://localhost:10000
like image 126
Remis Haroon - رامز Avatar answered Sep 05 '25 00:09

Remis Haroon - رامز