spark scan hbase get error: java.lang.UnsupportedOperationException: GetRegionLoad












0















I write a program to scan HBase by Spark, and my initial environment is:




  • scala: 2.11.12

  • Spark: 2.3.1

  • HBase: 2.1.0

  • Hadoop: 2.7.2


And my initial build.sbt file is:



name := "hbasetest"

version := "0.1"

scalaVersion := "2.11.12"


libraryDependencies ++= Seq(
"org.apache.spark" % "spark-core_2.11" % "2.3.1",
"org.apache.spark" % "spark-sql_2.11" % "2.3.1",
"org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
"org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
"org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
"org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
"org.apache.hadoop" % "hadoop-common" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
"org.apache.hadoop" % "hadoop-client" % "2.7.2",
"org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
"org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
"org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
"org.apache.hbase" % "hbase" % "2.1.0",
"org.apache.hbase" % "hbase-server" % "2.1.0",
"org.apache.hbase" % "hbase-common" % "2.1.0",
"org.apache.hbase" % "hbase-client" % "2.1.0",
"org.apache.hbase" % "hbase-protocol" % "2.1.0",
"org.apache.hbase" % "hbase-metrics" % "2.1.0",
"org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
"org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
"org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
"org.apache.hbase" % "hbase-hadoop-compat" % "2.1.0",
"org.apache.hbase" % "hbase-hadoop2-compat" % "2.1.0",
"org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0",
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
"com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
)

resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
resolvers += "clojars" at "https://clojars.org/repo"
resolvers += "conjars" at "http://conjars.org/repo"
resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


But now I need to migrate HBase 2.1.0 to HBase 1.2.6, and I got a Exception:



Exception in thread "main" org.apache.hadoop.hbase.DoNotRetryIOException: /10.251.12.73:16020 is unable to read call parameter from client 10.74.155.52; java.lang.UnsupportedOperationException: GetRegionLoad
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.instantiateException(RemoteWithExtrasException.java:100)
at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.unwrapRemoteException(RemoteWithExtrasException.java:90)


I find someone has the same question here, and I followed the answer, change "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0"



to



"org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0"



but I still have same exception, and if I modify my build.sbt like this:



name := "hbasetest"

version := "0.1"

scalaVersion := "2.11.12"


libraryDependencies ++= Seq(
"org.apache.spark" % "spark-core_2.11" % "2.3.1",
"org.apache.spark" % "spark-sql_2.11" % "2.3.1",
"org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
"org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
"org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
"org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
"org.apache.hadoop" % "hadoop-common" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
"org.apache.hadoop" % "hadoop-client" % "2.7.2",
"org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
"org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
"org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
"org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
"org.apache.hbase" % "hbase" % "1.2.6",
"org.apache.hbase" % "hbase-server" % "1.2.6",
"org.apache.hbase" % "hbase-common" % "1.2.6",
"org.apache.hbase" % "hbase-client" % "1.2.6",
"org.apache.hbase" % "hbase-protocol" % "1.2.6",
"org.apache.hbase" % "hbase-metrics" % "2.1.0",
"org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
"org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
"org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
"org.apache.hbase" % "hbase-hadoop-compat" % "1.2.6",
"org.apache.hbase" % "hbase-hadoop2-compat" % "1.2.6",
"org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0",
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
"com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
)

resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
resolvers += "clojars" at "https://clojars.org/repo"
resolvers += "conjars" at "http://conjars.org/repo"
resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


I got more exception, and it can't compile success, error like:



Class org.apache.hadoop.hbase.exceptions.DeserializationException not found - continuing with a stub.
Class org.apache.hadoop.hbase.filter.ByteArrayComparable not found - continuing with a stub.


Can you help me? Thanks!!










share|improve this question





























    0















    I write a program to scan HBase by Spark, and my initial environment is:




    • scala: 2.11.12

    • Spark: 2.3.1

    • HBase: 2.1.0

    • Hadoop: 2.7.2


    And my initial build.sbt file is:



    name := "hbasetest"

    version := "0.1"

    scalaVersion := "2.11.12"


    libraryDependencies ++= Seq(
    "org.apache.spark" % "spark-core_2.11" % "2.3.1",
    "org.apache.spark" % "spark-sql_2.11" % "2.3.1",
    "org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
    "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
    "org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
    "org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
    "org.apache.hadoop" % "hadoop-common" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
    "org.apache.hadoop" % "hadoop-client" % "2.7.2",
    "org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
    "org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
    "org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
    "org.apache.hbase" % "hbase" % "2.1.0",
    "org.apache.hbase" % "hbase-server" % "2.1.0",
    "org.apache.hbase" % "hbase-common" % "2.1.0",
    "org.apache.hbase" % "hbase-client" % "2.1.0",
    "org.apache.hbase" % "hbase-protocol" % "2.1.0",
    "org.apache.hbase" % "hbase-metrics" % "2.1.0",
    "org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
    "org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
    "org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
    "org.apache.hbase" % "hbase-hadoop-compat" % "2.1.0",
    "org.apache.hbase" % "hbase-hadoop2-compat" % "2.1.0",
    "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0",
    "com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
    "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
    )

    resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
    resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
    resolvers += "clojars" at "https://clojars.org/repo"
    resolvers += "conjars" at "http://conjars.org/repo"
    resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


    But now I need to migrate HBase 2.1.0 to HBase 1.2.6, and I got a Exception:



    Exception in thread "main" org.apache.hadoop.hbase.DoNotRetryIOException: /10.251.12.73:16020 is unable to read call parameter from client 10.74.155.52; java.lang.UnsupportedOperationException: GetRegionLoad
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.instantiateException(RemoteWithExtrasException.java:100)
    at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.unwrapRemoteException(RemoteWithExtrasException.java:90)


    I find someone has the same question here, and I followed the answer, change "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0"



    to



    "org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0"



    but I still have same exception, and if I modify my build.sbt like this:



    name := "hbasetest"

    version := "0.1"

    scalaVersion := "2.11.12"


    libraryDependencies ++= Seq(
    "org.apache.spark" % "spark-core_2.11" % "2.3.1",
    "org.apache.spark" % "spark-sql_2.11" % "2.3.1",
    "org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
    "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
    "org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
    "org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
    "org.apache.hadoop" % "hadoop-common" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
    "org.apache.hadoop" % "hadoop-client" % "2.7.2",
    "org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
    "org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
    "org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
    "org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
    "org.apache.hbase" % "hbase" % "1.2.6",
    "org.apache.hbase" % "hbase-server" % "1.2.6",
    "org.apache.hbase" % "hbase-common" % "1.2.6",
    "org.apache.hbase" % "hbase-client" % "1.2.6",
    "org.apache.hbase" % "hbase-protocol" % "1.2.6",
    "org.apache.hbase" % "hbase-metrics" % "2.1.0",
    "org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
    "org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
    "org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
    "org.apache.hbase" % "hbase-hadoop-compat" % "1.2.6",
    "org.apache.hbase" % "hbase-hadoop2-compat" % "1.2.6",
    "org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0",
    "com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
    "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
    )

    resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
    resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
    resolvers += "clojars" at "https://clojars.org/repo"
    resolvers += "conjars" at "http://conjars.org/repo"
    resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


    I got more exception, and it can't compile success, error like:



    Class org.apache.hadoop.hbase.exceptions.DeserializationException not found - continuing with a stub.
    Class org.apache.hadoop.hbase.filter.ByteArrayComparable not found - continuing with a stub.


    Can you help me? Thanks!!










    share|improve this question



























      0












      0








      0








      I write a program to scan HBase by Spark, and my initial environment is:




      • scala: 2.11.12

      • Spark: 2.3.1

      • HBase: 2.1.0

      • Hadoop: 2.7.2


      And my initial build.sbt file is:



      name := "hbasetest"

      version := "0.1"

      scalaVersion := "2.11.12"


      libraryDependencies ++= Seq(
      "org.apache.spark" % "spark-core_2.11" % "2.3.1",
      "org.apache.spark" % "spark-sql_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
      "org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
      "org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
      "org.apache.hadoop" % "hadoop-common" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
      "org.apache.hadoop" % "hadoop-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
      "org.apache.hbase" % "hbase" % "2.1.0",
      "org.apache.hbase" % "hbase-server" % "2.1.0",
      "org.apache.hbase" % "hbase-common" % "2.1.0",
      "org.apache.hbase" % "hbase-client" % "2.1.0",
      "org.apache.hbase" % "hbase-protocol" % "2.1.0",
      "org.apache.hbase" % "hbase-metrics" % "2.1.0",
      "org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
      "org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
      "org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
      "org.apache.hbase" % "hbase-hadoop-compat" % "2.1.0",
      "org.apache.hbase" % "hbase-hadoop2-compat" % "2.1.0",
      "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0",
      "com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
      "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
      )

      resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
      resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
      resolvers += "clojars" at "https://clojars.org/repo"
      resolvers += "conjars" at "http://conjars.org/repo"
      resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


      But now I need to migrate HBase 2.1.0 to HBase 1.2.6, and I got a Exception:



      Exception in thread "main" org.apache.hadoop.hbase.DoNotRetryIOException: /10.251.12.73:16020 is unable to read call parameter from client 10.74.155.52; java.lang.UnsupportedOperationException: GetRegionLoad
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.instantiateException(RemoteWithExtrasException.java:100)
      at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.unwrapRemoteException(RemoteWithExtrasException.java:90)


      I find someone has the same question here, and I followed the answer, change "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0"



      to



      "org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0"



      but I still have same exception, and if I modify my build.sbt like this:



      name := "hbasetest"

      version := "0.1"

      scalaVersion := "2.11.12"


      libraryDependencies ++= Seq(
      "org.apache.spark" % "spark-core_2.11" % "2.3.1",
      "org.apache.spark" % "spark-sql_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
      "org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
      "org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
      "org.apache.hadoop" % "hadoop-common" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
      "org.apache.hadoop" % "hadoop-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
      "org.apache.hbase" % "hbase" % "1.2.6",
      "org.apache.hbase" % "hbase-server" % "1.2.6",
      "org.apache.hbase" % "hbase-common" % "1.2.6",
      "org.apache.hbase" % "hbase-client" % "1.2.6",
      "org.apache.hbase" % "hbase-protocol" % "1.2.6",
      "org.apache.hbase" % "hbase-metrics" % "2.1.0",
      "org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
      "org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
      "org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
      "org.apache.hbase" % "hbase-hadoop-compat" % "1.2.6",
      "org.apache.hbase" % "hbase-hadoop2-compat" % "1.2.6",
      "org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0",
      "com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
      "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
      )

      resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
      resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
      resolvers += "clojars" at "https://clojars.org/repo"
      resolvers += "conjars" at "http://conjars.org/repo"
      resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


      I got more exception, and it can't compile success, error like:



      Class org.apache.hadoop.hbase.exceptions.DeserializationException not found - continuing with a stub.
      Class org.apache.hadoop.hbase.filter.ByteArrayComparable not found - continuing with a stub.


      Can you help me? Thanks!!










      share|improve this question
















      I write a program to scan HBase by Spark, and my initial environment is:




      • scala: 2.11.12

      • Spark: 2.3.1

      • HBase: 2.1.0

      • Hadoop: 2.7.2


      And my initial build.sbt file is:



      name := "hbasetest"

      version := "0.1"

      scalaVersion := "2.11.12"


      libraryDependencies ++= Seq(
      "org.apache.spark" % "spark-core_2.11" % "2.3.1",
      "org.apache.spark" % "spark-sql_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
      "org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
      "org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
      "org.apache.hadoop" % "hadoop-common" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
      "org.apache.hadoop" % "hadoop-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
      "org.apache.hbase" % "hbase" % "2.1.0",
      "org.apache.hbase" % "hbase-server" % "2.1.0",
      "org.apache.hbase" % "hbase-common" % "2.1.0",
      "org.apache.hbase" % "hbase-client" % "2.1.0",
      "org.apache.hbase" % "hbase-protocol" % "2.1.0",
      "org.apache.hbase" % "hbase-metrics" % "2.1.0",
      "org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
      "org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
      "org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
      "org.apache.hbase" % "hbase-hadoop-compat" % "2.1.0",
      "org.apache.hbase" % "hbase-hadoop2-compat" % "2.1.0",
      "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0",
      "com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
      "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
      )

      resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
      resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
      resolvers += "clojars" at "https://clojars.org/repo"
      resolvers += "conjars" at "http://conjars.org/repo"
      resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


      But now I need to migrate HBase 2.1.0 to HBase 1.2.6, and I got a Exception:



      Exception in thread "main" org.apache.hadoop.hbase.DoNotRetryIOException: /10.251.12.73:16020 is unable to read call parameter from client 10.74.155.52; java.lang.UnsupportedOperationException: GetRegionLoad
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.instantiateException(RemoteWithExtrasException.java:100)
      at org.apache.hadoop.hbase.ipc.RemoteWithExtrasException.unwrapRemoteException(RemoteWithExtrasException.java:90)


      I find someone has the same question here, and I followed the answer, change "org.apache.hbase" % "hbase-spark" % "2.1.0-cdh6.1.0"



      to



      "org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0"



      but I still have same exception, and if I modify my build.sbt like this:



      name := "hbasetest"

      version := "0.1"

      scalaVersion := "2.11.12"


      libraryDependencies ++= Seq(
      "org.apache.spark" % "spark-core_2.11" % "2.3.1",
      "org.apache.spark" % "spark-sql_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming_2.11" % "2.3.1",
      "org.apache.spark" % "spark-streaming-kafka-0-10_2.11" % "2.3.1",
      "org.apache.spark" % "spark-yarn_2.11" % "2.3.1",
      "org.apache.hadoop" % "hadoop-core" % "2.6.0-mr1-cdh5.15.1",
      "org.apache.hadoop" % "hadoop-common" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapred" % "0.22.0",
      "org.apache.hadoop" % "hadoop-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-hdfs-nfs" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client" % "2.7.2",
      "org.apache.hadoop" % "hadoop-mapreduce-client-common" % "2.7.2",
      "org.apache.hbase" % "hbase" % "1.2.6",
      "org.apache.hbase" % "hbase-server" % "1.2.6",
      "org.apache.hbase" % "hbase-common" % "1.2.6",
      "org.apache.hbase" % "hbase-client" % "1.2.6",
      "org.apache.hbase" % "hbase-protocol" % "1.2.6",
      "org.apache.hbase" % "hbase-metrics" % "2.1.0",
      "org.apache.hbase" % "hbase-metrics-api" % "2.1.0",
      "org.apache.hbase" % "hbase-mapreduce" % "2.1.0",
      "org.apache.hbase" % "hbase-zookeeper" % "2.1.0",
      "org.apache.hbase" % "hbase-hadoop-compat" % "1.2.6",
      "org.apache.hbase" % "hbase-hadoop2-compat" % "1.2.6",
      "org.apache.hbase" % "hbase-spark" % "1.2.0-cdh5.16.0",
      "com.fasterxml.jackson.core" % "jackson-core" % "2.9.2",
      "com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.9.2"
      )

      resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
      resolvers += "Hortonworks Repository" at "http://repo.hortonworks.com/content/repositories/releases/"
      resolvers += "clojars" at "https://clojars.org/repo"
      resolvers += "conjars" at "http://conjars.org/repo"
      resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"


      I got more exception, and it can't compile success, error like:



      Class org.apache.hadoop.hbase.exceptions.DeserializationException not found - continuing with a stub.
      Class org.apache.hadoop.hbase.filter.ByteArrayComparable not found - continuing with a stub.


      Can you help me? Thanks!!







      apache-spark hbase






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 9:38







      Mr.ChenZ

















      asked Nov 13 '18 at 9:09









      Mr.ChenZMr.ChenZ

      347




      347
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53277397%2fspark-scan-hbase-get-error-java-lang-unsupportedoperationexception-getregionlo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53277397%2fspark-scan-hbase-get-error-java-lang-unsupportedoperationexception-getregionlo%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Full-time equivalent

          さくらももこ

          13 indicted, 8 arrested in Calif. drug cartel investigation