You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/25 02:05:57 UTC

[GitHub] [spark] yangBottle commented on pull request #31302: [SPARK-34210][SQL] After upgrading 3.0.1, Spark SQL access hive on HBase table access exception

yangBottle commented on pull request #31302:
URL: https://github.com/apache/spark/pull/31302#issuecomment-766493076


   > Hi, if it's assignable to both, why does Apache Spark need to use old one? Instead, it sounds like `Hivehbasetableinputformat` seems to miss the correct implementation for `mapreduce.InputFormat`. This doesn't look like a Spark issue to me. Is there an Hive JIRA issue for that?
   > 
   > > Hivehbasetableinputformat relies on two versions of inputformat,one is org.apache.hadoop.mapred.InputFormat, the other is org.apache.hadoop.mapreduce.InputFormat,Causes both conditions to be true:
   > > classOf[oldInputClass[_, _]].isAssignableFrom(inputFormatClazz) is true
   > > classOf[newInputClass[_, _]].isAssignableFrom(inputFormatClazz) is true
   > > In view of this situation,It is expected to be compatible with the old version first
   
   I think in order to be compatible with implementation classes similar to 'org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat' that both uses the old API and the new API, it should be prioritized whether to create the old one.
   
   


----------------------------------------------------------------
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: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org