spark-submit报错/xxx/bin/spark-class: line 100: exec: : not found

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spark-submit报错/xxx/bin/spark-class: line 100: exec: : not found相关的知识,希望对你有一定的参考价值。

参考技术A 在本地执行spark-submit报错/xxx/bin/spark-class: line 100: exec: : not found,度/谷连问题都找不到,只能自己定位了。过程略去,结论:本机上安装了2个版本的spark,配置混乱,导致环境变量spark_home和spark_conf_dir不对应。修改为对应即可。

gem install XXX报错

问题:
    1、安装Ruby;
    2、安装rubygems:yum -y install rubygems
    3、通过gem安装bundle:gem install bundle

ERROR:  While executing gem ... (Gem::Exception)
    Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

方案:

[root@localhost ~]# yum -y install openssl-devel
...省略...
[root@localhost ~]# cd /opt/ruby-3.0.2/ext/openssl/
[root@localhost openssl]# ruby ./extconf.rb
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
...省略...
creating extconf.h
creating Makefile
[root@localhost openssl]# vim /opt/ruby-3.0.2/ext/openssl/Makefile #在/opt/ruby-3.0.2/ext/openssl/Makefile文件顶部添加top_srcdir = ../..
[root@localhost openssl]# pwd
/opt/ruby-3.0.2/ext/openssl
[root@localhost openssl]# make install

以上是关于spark-submit报错/xxx/bin/spark-class: line 100: exec: : not found的主要内容,如果未能解决你的问题,请参考以下文章

spark-submit提交python脚本过程记录

导入包报错:Cannot resolve com.xxx

spark-submit提交程序,找不到类名

为啥此 python 代码在 pyspark 中有效,但在 spark-submit 中无效?

解决centos7.4 安装LAMP环境后报错:1130- Host xxx is not allowed to……

TS 报错 “umi“没有导出的成员‘xxx‘