shangeyao opened a new issue, #4095:
URL: https://github.com/apache/incubator-seatunnel/issues/4095

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   Hive2Hive cause NPE error
   
   ### SeaTunnel Version
   
   2.3.0
   
   ### SeaTunnel Config
   
   ```conf
   env {
       execution.parallelism = 8
       job.name="test_job"
   }
   
   source {
       Hive {
           table_name = "default.table"
           metastore_uri = "thrift://uri:9083"
       }
   }
   
   transform {
   }
   
   sink {
       Hive {
           table_name = "default.table"
           metastore_uri = "thrift:/uri:9083"
           partition_by = ["partion_by"]
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ${SEATUNNEL_HOME}/bin/start-seatunnel-spark-connector-v2.sh --config 
test.conf --deploy-mode client --master yarn
   ```
   
   
   ### Error Exception
   
   ```log
   23/02/09 16:33:24 ERROR SparkApiTaskExecuteCommand: Run SeaTunnel on spark 
failed.
        java.lang.NullPointerException
                at org.apache.thrift.transport.TSocket.open(TSocket.java:209)
                at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.open(HiveMetaStoreClient.java:426)
                at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:242)
                at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:183)
                at 
org.apache.seatunnel.connectors.seatunnel.hive.utils.HiveMetaStoreProxy.<init>(HiveMetaStoreProxy.java:44)
                at 
org.apache.seatunnel.connectors.seatunnel.hive.utils.HiveMetaStoreProxy.getInstance(HiveMetaStoreProxy.java:56)
                at 
org.apache.seatunnel.connectors.seatunnel.hive.config.HiveConfig.getTableInfo(HiveConfig.java:51)
                at 
org.apache.seatunnel.connectors.seatunnel.hive.sink.HiveSink.prepare(HiveSink.java:86)
                at 
org.apache.seatunnel.core.starter.spark.execution.SinkExecuteProcessor.lambda$initializePlugins$0(SinkExecuteProcessor.java:61)
                at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
                at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
                at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
                at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
                at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
                at 
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
                at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
                at 
org.apache.seatunnel.core.starter.spark.execution.SinkExecuteProcessor.initializePlugins(SinkExecuteProcessor.java:64)
                at 
org.apache.seatunnel.core.starter.spark.execution.AbstractPluginExecuteProcessor.<init>(AbstractPluginExecuteProcessor.java:49)
                at 
org.apache.seatunnel.core.starter.spark.execution.SinkExecuteProcessor.<init>(SinkExecuteProcessor.java:50)
                at 
org.apache.seatunnel.core.starter.spark.execution.SparkExecution.<init>(SparkExecution.java:53)
                at 
org.apache.seatunnel.core.starter.spark.command.SparkApiTaskExecuteCommand.execute(SparkApiTaskExecuteCommand.java:54)
                at 
org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:39)
                at 
org.apache.seatunnel.core.starter.spark.SeatunnelSpark.main(SeatunnelSpark.java:34)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at 
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
                at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:904)
                at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:198)
                at 
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:228)
                at 
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:137)
                at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
        23/02/09 16:33:24 ERROR Seatunnel: 
        
        
===============================================================================
        
        
        23/02/09 16:33:24 ERROR Seatunnel: Fatal Error, 
        
        23/02/09 16:33:24 ERROR Seatunnel: Please submit bug report in 
https://github.com/apache/incubator-seatunnel/issues
        
        23/02/09 16:33:24 ERROR Seatunnel: Reason:null 
        
        23/02/09 16:33:24 ERROR Seatunnel: Exception 
StackTrace:org.apache.seatunnel.core.starter.exception.CommandExecuteException
                at 
org.apache.seatunnel.core.starter.spark.command.SparkApiTaskExecuteCommand.execute(SparkApiTaskExecuteCommand.java:58)
                at 
org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:39)
                at 
org.apache.seatunnel.core.starter.spark.SeatunnelSpark.main(SeatunnelSpark.java:34)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at 
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
                at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:904)
                at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:198)
                at 
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:228)
                at 
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:137)
                at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
         
        23/02/09 16:33:24 ERROR Seatunnel: 
        
===============================================================================
        
        
        
        Exception in thread "main" 
org.apache.seatunnel.core.starter.exception.CommandExecuteException
                at 
org.apache.seatunnel.core.starter.spark.command.SparkApiTaskExecuteCommand.execute(SparkApiTaskExecuteCommand.java:58)
                at 
org.apache.seatunnel.core.starter.Seatunnel.run(Seatunnel.java:39)
                at 
org.apache.seatunnel.core.starter.spark.SeatunnelSpark.main(SeatunnelSpark.java:34)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at 
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
                at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:904)
                at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:198)
                at 
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:228)
                at 
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:137)
                at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   ```
   
   
   ### Flink or Spark Version
   
   spark 2.3.0
   
   ### Java or Scala Version
   
   java version "1.8.0_212"
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to