我已经使用trafodion开发了spark应用程序。当使用spark-submit命令以--master local[*]
模式运行应用程序时,它可以正常工作,并且数据已正确插入DB中。但是,当我在--master yarn
集群模式下运行同一应用程序时,它没有运行。它给出了错误:
ERROR[29716] Error writing to the certificate file /home/hadoop-testing-M3_yarn.cer.
ERROR[29716] Error writing to the certificate file /home/hadoop-testing-M1_yarn.cer.
ERROR[29716] Error writing to the certificate file /home/hadoop-testing-M2_yarn.cer.
我们有3个节点集群,并且在集群模式下运行trafodion时遇到此错误。
谁能告诉我如何解决这个问题?
最佳答案
该错误是由于对 yarn 用户缺乏对/ home的写特权。您可以通过在jdbc url中指定一个 yarn 用户有权访问的目录来覆盖默认位置
“jdbc:t4jdbc://:23400 /:certificateDir = / tmp”
关于hadoop - Trafodion在集群模式下有 Spark ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40258786/