You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/02/05 14:15:17 UTC

[GitHub] [incubator-doris] hf200012 commented on a change in pull request #5366: Spark doris connector http v2 authentication fails, and HTTP v2 interface returns json nesting problem

hf200012 commented on a change in pull request #5366:
URL: https://github.com/apache/incubator-doris/pull/5366#discussion_r570995569



##########
File path: extension/spark-doris-connector/src/test/scala/org/apache/doris/spark/sql/SparkDorisConnector.scala
##########
@@ -0,0 +1,30 @@
+package org.apache.doris.spark.sql
+
+import org.apache.spark.{SparkConf, SparkContext}
+
+
+
+object SparkDorisConnector {
+
+    def main(args: Array[String]): Unit = {
+        val sparkConf: SparkConf = new SparkConf().setAppName("SparkDorisConnector").setMaster("local[*]")
+        val sc = new SparkContext(sparkConf)
+        sc.setLogLevel("DEBUG")
+        import org.apache.doris.spark._
+        val dorisSparkRDD = sc.dorisRDD(
+//            tableIdentifier = Some("ods.ods_pos_pro_shop_delta"),
+            tableIdentifier = Some("ods.ods_t_pro_dish_list_detail_test_demo"),
+//            query = Some("select * from ods.ods_t_pro_dish_list_detail_test_demo limit 1"),
+            cfg = Some(Map(
+//                "doris.fenodes" -> "10.220.146.10:8030",
+                "doris.fenodes" -> "10.220.147.155:8030",

Review comment:
       ok




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org