You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Littlestar (JIRA)" <ji...@apache.org> on 2015/03/03 11:00:22 UTC
[jira] [Comment Edited] (SPARK-6049) HiveThriftServer2 may expose
Inheritable methods
[ https://issues.apache.org/jira/browse/SPARK-6049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14340018#comment-14340018 ]
Littlestar edited comment on SPARK-6049 at 3/3/15 9:59 AM:
-----------------------------------------------------------
thanks. I call ok by static methods, but not tables finds.
Does I need to open new JIRA issue?
{noformat}
SparkConf sparkConf = new SparkConf().setAppName("ParquetFileQuery");
JavaSparkContext ctx = new JavaSparkContext(sparkConf);
SQLContext sqlCtx = new SQLContext(ctx);
HiveContext hiveCtx = new HiveContext(ctx.sc());
JavaSchemaRDD mids = sqlCtx.parquetFile("/parquetdir");
hiveCtx.registerDataFrameAsTable(mids, "demo");
HiveThriftServer2.startWithContext(hiveCtx);
{noformat}
was (Author: cnstar9988):
thanks. I call ok by static methods, but not tables finds.
Does I need to open new JIRA issue?
{noformat}
SparkConf sparkConf = new SparkConf().setAppName("ParquetFileQuery").set("spark.executor.memory", "4g");
JavaSparkContext ctx = new JavaSparkContext(sparkConf);
JavaSQLContext sqlCtx = new JavaSQLContext(ctx);
JavaSchemaRDD mids = sqlCtx.parquetFile("/parquetdir");
mids.registerTempTable("demo");
HiveThriftServer2.startWithContext(new HiveContext(ctx.sc()));
{noformat}
> HiveThriftServer2 may expose Inheritable methods
> ------------------------------------------------
>
> Key: SPARK-6049
> URL: https://issues.apache.org/jira/browse/SPARK-6049
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.2.1
> Reporter: Littlestar
> Priority: Minor
> Labels: HiveThriftServer2
>
> Does HiveThriftServer2 may expose Inheritable methods?
> HiveThriftServer2 is very good when used as a JDBC Server, but HiveThriftServer2.scala is not Inheritable or invokable by app.
> My app use JavaSQLContext and registerTempTable.
> I want to expose these TempTables by HiveThriftServer2(JDBC Server).
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org