flink报错处理:Could not get JVM parameters and dynamic configurations properly.

        在服务器上运行flink时,发生报错:Could not get JVM parameters and dynamic configurations properly。


处理办法:

 卸载服务器系统中自带的 openjdk 手动安装 jdk1.8(版本自定)!


        1,rpm -qa|grep jdk 输入以下命令,查看已有的openjdk版本

        2,yum -y remove copy-jdk-configs-3.3-10.el7_5.noarch 输入以下命令将openjdk卸载

        3,卸载掉所有通过rpm -qa|grep jdk命令输出的openjdk文件,卸载完成之后java相关的命令都不可使用(如:java ,java -version,javac等)

        4,官网下载 jdk-8u171-linux-x64.tar.gz,下载完成之后上传到centos中。

        5,解压 tar -zxvf jdk-8u171-linux-x64.tar.gz -C /usr/local/java

               (这里我解压到了 /usr/local/java 目录下,建议目录,你们也可以自选)

        6,配置JAVA_HOME (类似于window系统添加上环境变量,从而可以敲命令运行程序):

                1)要做的就是:在/etc/profile文件的末尾加上  bin目录路径。

                2)vim /etc/profile

                3)  export JAVA_HOME=/usr/local/java/jdk1.8.0_171/

                4)  export JRE_HOME=/usr/local/java/jdk1.8.0_171/jre

                5)  export PATH=$PATH:/usr/local/java/jdk1.8.0_171/bin

          6) export CLASSPATH=./:/usr/local/java/jdk1.8.0_171/lib:/usr/local/java/jdk1.8.0_171/jre/lib

         7,  通过以下命令使修改后的profile文件生效:

                1)source /etc/profile

                2)  这样JAVA_HOME 就配置好了

        8,   输入以下命令查看是否安装好了

                1)java -version

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
[omm@lm2hdp03 bin]$ ./start-cluster.sh Starting cluster. [ERROR] The execution result is empty. [ERROR] Could not get JVM parameters and dynamic configurations properly. [ERROR] Raw output from BashJavaUtils: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080200000, 1404043264, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 1404043264 bytes for committing reserved memory. # An error report file with more information is saved as: # /opt/gcytest/flink-1.17.1/bin/hs_err_pid30333.log Warning: Permanently added 'lm2hdp01,10.100.40.200' (ECDSA) to the list of known hosts. [INFO] 1 instance(s) of taskexecutor are already running on lm2hdp01. Starting taskexecutor daemon on host lm2hdp01. Warning: Permanently added 'lm2hdp02,10.100.40.202' (ECDSA) to the list of known hosts. [INFO] 1 instance(s) of taskexecutor are already running on lm2hdp02. Starting taskexecutor daemon on host lm2hdp02. Warning: Permanently added 'lm2hdp03,10.100.40.209' (ECDSA) to the list of known hosts. [ERROR] Could not get JVM parameters and dynamic configurations properly. [ERROR] Raw output from BashJavaUtils: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080200000, 1404043264, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 1404043264 bytes for committing reserved memory. # An error report file with more information is saved as: # /home/omm/hs_err_pid32379.log
06-01

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值