[jira] [Commented] (BAHIR-154) Refactor sql-cloudant to use Cloudant's java-cloudant features
[ https://issues.apache.org/jira/browse/BAHIR-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338850#comment-16338850 ] ASF GitHub Bot commented on BAHIR-154: -- Github user emlaver commented on the issue: https://github.com/apache/bahir/pull/61 @lresende PR rebased and fixed error message after rebasing #60. > Refactor sql-cloudant to use Cloudant's java-cloudant features > -- > > Key: BAHIR-154 > URL: https://issues.apache.org/jira/browse/BAHIR-154 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > > Cloudant's java-cloudant library (which is currently used for testing) > contains several features that sql-cloudant can benefit from: > - HTTP 429 backoff > - View builder API to potentially simplify loading for _all_docs/views > - Improved exception handling when executing HTTP requests > - Future support for IAM API key > Would need to replace current scala HTTP library with OkHttp library, and > also replace play-json with GSON library. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-154) Refactor sql-cloudant to use Cloudant's java-cloudant features
[ https://issues.apache.org/jira/browse/BAHIR-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338781#comment-16338781 ] ASF GitHub Bot commented on BAHIR-154: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/61 :white_check_mark: Build successful > Refactor sql-cloudant to use Cloudant's java-cloudant features > -- > > Key: BAHIR-154 > URL: https://issues.apache.org/jira/browse/BAHIR-154 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > > Cloudant's java-cloudant library (which is currently used for testing) > contains several features that sql-cloudant can benefit from: > - HTTP 429 backoff > - View builder API to potentially simplify loading for _all_docs/views > - Improved exception handling when executing HTTP requests > - Future support for IAM API key > Would need to replace current scala HTTP library with OkHttp library, and > also replace play-json with GSON library. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-154) Refactor sql-cloudant to use Cloudant's java-cloudant features
[ https://issues.apache.org/jira/browse/BAHIR-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338782#comment-16338782 ] ASF GitHub Bot commented on BAHIR-154: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/61 Refer to this link for build results (access rights to CI server needed): http://169.45.79.58:8080/job/bahir_spark_pr_builder/157/ > Refactor sql-cloudant to use Cloudant's java-cloudant features > -- > > Key: BAHIR-154 > URL: https://issues.apache.org/jira/browse/BAHIR-154 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > > Cloudant's java-cloudant library (which is currently used for testing) > contains several features that sql-cloudant can benefit from: > - HTTP 429 backoff > - View builder API to potentially simplify loading for _all_docs/views > - Improved exception handling when executing HTTP requests > - Future support for IAM API key > Would need to replace current scala HTTP library with OkHttp library, and > also replace play-json with GSON library. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-154) Refactor sql-cloudant to use Cloudant's java-cloudant features
[ https://issues.apache.org/jira/browse/BAHIR-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338753#comment-16338753 ] ASF GitHub Bot commented on BAHIR-154: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/61 :red_circle: Build failed, see build log for details > Refactor sql-cloudant to use Cloudant's java-cloudant features > -- > > Key: BAHIR-154 > URL: https://issues.apache.org/jira/browse/BAHIR-154 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > > Cloudant's java-cloudant library (which is currently used for testing) > contains several features that sql-cloudant can benefit from: > - HTTP 429 backoff > - View builder API to potentially simplify loading for _all_docs/views > - Improved exception handling when executing HTTP requests > - Future support for IAM API key > Would need to replace current scala HTTP library with OkHttp library, and > also replace play-json with GSON library. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-154) Refactor sql-cloudant to use Cloudant's java-cloudant features
[ https://issues.apache.org/jira/browse/BAHIR-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338754#comment-16338754 ] ASF GitHub Bot commented on BAHIR-154: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/61 Refer to this link for build results (access rights to CI server needed): http://169.45.79.58:8080/job/bahir_spark_pr_builder/156/ > Refactor sql-cloudant to use Cloudant's java-cloudant features > -- > > Key: BAHIR-154 > URL: https://issues.apache.org/jira/browse/BAHIR-154 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > > Cloudant's java-cloudant library (which is currently used for testing) > contains several features that sql-cloudant can benefit from: > - HTTP 429 backoff > - View builder API to potentially simplify loading for _all_docs/views > - Improved exception handling when executing HTTP requests > - Future support for IAM API key > Would need to replace current scala HTTP library with OkHttp library, and > also replace play-json with GSON library. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-138) Fix sql-cloudant deprecation messages
[ https://issues.apache.org/jira/browse/BAHIR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338723#comment-16338723 ] ASF subversion and git services commented on BAHIR-138: --- Commit 785ee1e1acfb129bb0524d79df3372968b9e95a7 in bahir's branch refs/heads/master from [~emlaver] [ https://git-wip-us.apache.org/repos/asf?p=bahir.git;h=785ee1e ] [BAHIR-138] Fix deprecation warning messages - Imported ‘spark.implicits._’ to convert Spark RDD to Dataset - Replaced deprecated `json(RDD[String])` with `json(Dataset[String])` Closes #63 > Fix sql-cloudant deprecation messages > - > > Key: BAHIR-138 > URL: https://issues.apache.org/jira/browse/BAHIR-138 > Project: Bahir > Issue Type: Task > Components: Spark Structured Streaming Connectors >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Minor > Labels: warnings > Fix For: Spark-2.2.1, Spark-2.3 > > > Deprecation warnings in {{DefaultSource}}: > {code} > [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to sql-cloudant/target/scala-2.11/classes... > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:59: > method json in class DataFrameReader is deprecated: Use json(Dataset[String]) > instead. > [WARNING] val df = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:115: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:121: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] sqlContext.read.json(aRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:152: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = > sqlContext.sparkSession.read.json(globalRDD) > [WARNING]^ > [WARNING] four warnings found > {code} > Deprecation warnings in {{CloudantStreaming}} and > {{CloudantStreamingSelector}} examples: > {code} > [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to > sql-cloudant/target/scala-2.11/test-classes... > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:46: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:67: > method registerTempTable in class Dataset is deprecated: Use > createOrReplaceTempView(viewName) instead. > [WARNING] changesDataFrame.registerTempTable("airportcodemapping") > [WARNING]^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreamingSelector.scala:50: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] three warnings found > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-138) Fix sql-cloudant deprecation messages
[ https://issues.apache.org/jira/browse/BAHIR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338714#comment-16338714 ] ASF GitHub Bot commented on BAHIR-138: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/63 Refer to this link for build results (access rights to CI server needed): http://169.45.79.58:8080/job/bahir_spark_pr_builder/155/ > Fix sql-cloudant deprecation messages > - > > Key: BAHIR-138 > URL: https://issues.apache.org/jira/browse/BAHIR-138 > Project: Bahir > Issue Type: Task > Components: Spark Structured Streaming Connectors >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Minor > Labels: warnings > Fix For: Spark-2.2.1, Spark-2.3 > > > Deprecation warnings in {{DefaultSource}}: > {code} > [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to sql-cloudant/target/scala-2.11/classes... > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:59: > method json in class DataFrameReader is deprecated: Use json(Dataset[String]) > instead. > [WARNING] val df = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:115: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:121: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] sqlContext.read.json(aRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:152: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = > sqlContext.sparkSession.read.json(globalRDD) > [WARNING]^ > [WARNING] four warnings found > {code} > Deprecation warnings in {{CloudantStreaming}} and > {{CloudantStreamingSelector}} examples: > {code} > [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to > sql-cloudant/target/scala-2.11/test-classes... > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:46: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:67: > method registerTempTable in class Dataset is deprecated: Use > createOrReplaceTempView(viewName) instead. > [WARNING] changesDataFrame.registerTempTable("airportcodemapping") > [WARNING]^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreamingSelector.scala:50: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] three warnings found > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-138) Fix sql-cloudant deprecation messages
[ https://issues.apache.org/jira/browse/BAHIR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338703#comment-16338703 ] ASF GitHub Bot commented on BAHIR-138: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/63 Refer to this link for build results (access rights to CI server needed): http://169.45.79.58:8080/job/bahir_spark_pr_builder/154/ > Fix sql-cloudant deprecation messages > - > > Key: BAHIR-138 > URL: https://issues.apache.org/jira/browse/BAHIR-138 > Project: Bahir > Issue Type: Task > Components: Spark Structured Streaming Connectors >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Minor > Labels: warnings > Fix For: Spark-2.2.1, Spark-2.3 > > > Deprecation warnings in {{DefaultSource}}: > {code} > [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to sql-cloudant/target/scala-2.11/classes... > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:59: > method json in class DataFrameReader is deprecated: Use json(Dataset[String]) > instead. > [WARNING] val df = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:115: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:121: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] sqlContext.read.json(aRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:152: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = > sqlContext.sparkSession.read.json(globalRDD) > [WARNING]^ > [WARNING] four warnings found > {code} > Deprecation warnings in {{CloudantStreaming}} and > {{CloudantStreamingSelector}} examples: > {code} > [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to > sql-cloudant/target/scala-2.11/test-classes... > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:46: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:67: > method registerTempTable in class Dataset is deprecated: Use > createOrReplaceTempView(viewName) instead. > [WARNING] changesDataFrame.registerTempTable("airportcodemapping") > [WARNING]^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreamingSelector.scala:50: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] three warnings found > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-138) Fix sql-cloudant deprecation messages
[ https://issues.apache.org/jira/browse/BAHIR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338702#comment-16338702 ] ASF GitHub Bot commented on BAHIR-138: -- Github user ApacheBahir commented on the issue: https://github.com/apache/bahir/pull/63 :red_circle: Build failed, see build log for details > Fix sql-cloudant deprecation messages > - > > Key: BAHIR-138 > URL: https://issues.apache.org/jira/browse/BAHIR-138 > Project: Bahir > Issue Type: Task > Components: Spark Structured Streaming Connectors >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Minor > Labels: warnings > Fix For: Spark-2.2.1, Spark-2.3 > > > Deprecation warnings in {{DefaultSource}}: > {code} > [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to sql-cloudant/target/scala-2.11/classes... > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:59: > method json in class DataFrameReader is deprecated: Use json(Dataset[String]) > instead. > [WARNING] val df = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:115: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:121: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] sqlContext.read.json(aRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:152: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = > sqlContext.sparkSession.read.json(globalRDD) > [WARNING]^ > [WARNING] four warnings found > {code} > Deprecation warnings in {{CloudantStreaming}} and > {{CloudantStreamingSelector}} examples: > {code} > [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to > sql-cloudant/target/scala-2.11/test-classes... > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:46: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:67: > method registerTempTable in class Dataset is deprecated: Use > createOrReplaceTempView(viewName) instead. > [WARNING] changesDataFrame.registerTempTable("airportcodemapping") > [WARNING]^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreamingSelector.scala:50: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] three warnings found > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-138) Fix sql-cloudant deprecation messages
[ https://issues.apache.org/jira/browse/BAHIR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338691#comment-16338691 ] ASF GitHub Bot commented on BAHIR-138: -- Github user emlaver commented on the issue: https://github.com/apache/bahir/pull/63 @lresende I've rebased. Once this one is merged, I'll rebase #61. > Fix sql-cloudant deprecation messages > - > > Key: BAHIR-138 > URL: https://issues.apache.org/jira/browse/BAHIR-138 > Project: Bahir > Issue Type: Task > Components: Spark Structured Streaming Connectors >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Minor > Labels: warnings > Fix For: Spark-2.2.1, Spark-2.3 > > > Deprecation warnings in {{DefaultSource}}: > {code} > [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to sql-cloudant/target/scala-2.11/classes... > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:59: > method json in class DataFrameReader is deprecated: Use json(Dataset[String]) > instead. > [WARNING] val df = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:115: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:121: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] sqlContext.read.json(aRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:152: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = > sqlContext.sparkSession.read.json(globalRDD) > [WARNING]^ > [WARNING] four warnings found > {code} > Deprecation warnings in {{CloudantStreaming}} and > {{CloudantStreamingSelector}} examples: > {code} > [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to > sql-cloudant/target/scala-2.11/test-classes... > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:46: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:67: > method registerTempTable in class Dataset is deprecated: Use > createOrReplaceTempView(viewName) instead. > [WARNING] changesDataFrame.registerTempTable("airportcodemapping") > [WARNING]^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreamingSelector.scala:50: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] three warnings found > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-154) Refactor sql-cloudant to use Cloudant's java-cloudant features
[ https://issues.apache.org/jira/browse/BAHIR-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338556#comment-16338556 ] ASF GitHub Bot commented on BAHIR-154: -- Github user lresende commented on the issue: https://github.com/apache/bahir/pull/61 @emlaver Could you please rebase this pr > Refactor sql-cloudant to use Cloudant's java-cloudant features > -- > > Key: BAHIR-154 > URL: https://issues.apache.org/jira/browse/BAHIR-154 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > > Cloudant's java-cloudant library (which is currently used for testing) > contains several features that sql-cloudant can benefit from: > - HTTP 429 backoff > - View builder API to potentially simplify loading for _all_docs/views > - Improved exception handling when executing HTTP requests > - Future support for IAM API key > Would need to replace current scala HTTP library with OkHttp library, and > also replace play-json with GSON library. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-138) Fix sql-cloudant deprecation messages
[ https://issues.apache.org/jira/browse/BAHIR-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338555#comment-16338555 ] ASF GitHub Bot commented on BAHIR-138: -- Github user lresende commented on the issue: https://github.com/apache/bahir/pull/63 @emlaver Could you please rebase this pr > Fix sql-cloudant deprecation messages > - > > Key: BAHIR-138 > URL: https://issues.apache.org/jira/browse/BAHIR-138 > Project: Bahir > Issue Type: Task > Components: Spark Structured Streaming Connectors >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Minor > Labels: warnings > Fix For: Spark-2.2.1, Spark-2.3 > > > Deprecation warnings in {{DefaultSource}}: > {code} > [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to sql-cloudant/target/scala-2.11/classes... > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:59: > method json in class DataFrameReader is deprecated: Use json(Dataset[String]) > instead. > [WARNING] val df = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:115: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = sqlContext.read.json(cloudantRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:121: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] sqlContext.read.json(aRDD) > [WARNING] ^ > [WARNING] > sql-cloudant/src/main/scala/org/apache/bahir/cloudant/DefaultSource.scala:152: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] dataFrame = > sqlContext.sparkSession.read.json(globalRDD) > [WARNING]^ > [WARNING] four warnings found > {code} > Deprecation warnings in {{CloudantStreaming}} and > {{CloudantStreamingSelector}} examples: > {code} > [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile-first) @ > spark-sql-cloudant_2.11 --- > [INFO] Compiling 11 Scala sources to > sql-cloudant/target/scala-2.11/test-classes... > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:46: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreaming.scala:67: > method registerTempTable in class Dataset is deprecated: Use > createOrReplaceTempView(viewName) instead. > [WARNING] changesDataFrame.registerTempTable("airportcodemapping") > [WARNING]^ > [WARNING] > sql-cloudant/examples/src/main/scala/org/apache/spark/examples/sql/cloudant/CloudantStreamingSelector.scala:50: > method json in class DataFrameReader is deprecated: Use > json(Dataset[String]) instead. > [WARNING] val changesDataFrame = spark.read.json(rdd) > [WARNING] ^ > [WARNING] three warnings found > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (BAHIR-137) Load performance improvements for _changes API in sql-cloudant
[ https://issues.apache.org/jira/browse/BAHIR-137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16338549#comment-16338549 ] ASF GitHub Bot commented on BAHIR-137: -- Github user asfgit closed the pull request at: https://github.com/apache/bahir/pull/60 > Load performance improvements for _changes API in sql-cloudant > -- > > Key: BAHIR-137 > URL: https://issues.apache.org/jira/browse/BAHIR-137 > Project: Bahir > Issue Type: Improvement >Affects Versions: Spark-2.2.0 >Reporter: Esteban Laver >Assignee: Esteban Laver >Priority: Major > Fix For: Spark-2.2.1, Spark-2.3 > > > Items for improving _changes feed load: > - Make Spark streaming batch interval visible to the user for tuning based on > type/size of document and number of docs in database > - Merge BAHIR-128: Improve stability of _changes receiver > - Merge BAHIR-154: refactor sql-cloudant to use java-cloudant library -- This message was sent by Atlassian JIRA (v7.6.3#76005)