Home > other >  How to access data Hive RDD operator
How to access data Hive RDD operator

Time:09-25

 
RDD. The map (m=& gt; {
HTX. SQL (" select * from test ")
})

Don't like this, to visit Hive data, error
That how to access data Hive in operator, kneel beg

CodePudding user response:

I'm sorry, ability is limited, I can't help you!



CodePudding user response:

In the operator to create HiveContext ah

CodePudding user response:

Are you direct download website compiled Spark? So can only use HiveQL access table and cannot be registered in HiveContext access Hive table, to access the Hive you must download the source code to specify Hive version compiled

CodePudding user response:

refer to the second floor link0007 response:
create in the operator HiveContext ah

This is also a kind of method, but with no way to define the drivers side HiveContext to the operator,

CodePudding user response:

reference 4 floor u014307117 response:
Quote: refer to the second floor link0007 response:

In the operator to create HiveContext ah

This is also a kind of method, but with no way to define the drivers side HiveContext to operator,

Spark2.0 can SparkSession. Builder. SparkContext (CTX) getOrCreate ()

CodePudding user response:

reference 4 floor u014307117 response:
Quote: refer to the second floor link0007 response:

In the operator to create HiveContext ah

This is also a kind of method, but with no way to define the drivers side HiveContext to operator,

Or you test under the Driver side HiveContext broadcast out,,,
  • Related