博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Starting cloudera-scm-server: * Couldn't start cloudera-scm-server的解决办法(图文详解)
阅读量:5113 次
发布时间:2019-06-13

本文共 2512 字,大约阅读时间需要 8 分钟。

 

 

 

bigdata@ubuntucmbigdata1:~$ sudo /etc/init.d/mysql startstart: Job is already running: mysqlbigdata@ubuntucmbigdata1:~$ sudo /etc/init.d/mysql stopmysql stop/waitingbigdata@ubuntucmbigdata1:~$ sudo /etc/init.d/mysql startmysql start/running, process 2169bigdata@ubuntucmbigdata1:~$ sudo /opt/cm-5.6.0/etc/init.d/cloudera-scm-server startStarting cloudera-scm-server:  * Couldn't start cloudera-scm-serverbigdata@ubuntucmbigdata1:~$ java -versionjava version "1.8.0_60"Java(TM) SE Runtime Environment (build 1.8.0_60-b27)Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)bigdata@ubuntucmbigdata1:~$ vim /etc/profilebigdata@ubuntucmbigdata1:~$ java -versionjava version "1.8.0_60"Java(TM) SE Runtime Environment (build 1.8.0_60-b27)Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)bigdata@ubuntucmbigdata1:~$

 

 

 

 

bigdata@ubuntucmbigdata1:/opt/cm-5.6.0/log/cloudera-scm-server$ pwd/opt/cm-5.6.0/log/cloudera-scm-serverbigdata@ubuntucmbigdata1:/opt/cm-5.6.0/log/cloudera-scm-server$ lltotal 12drwxr-xr-x 2 bigdata bigdata 4096  6月 25 19:52 ./drwxr-xr-x 5 bigdata bigdata 4096  2月 12  2016 ../-rw-r--r-- 1 root    root     730  6月 25 21:08 cloudera-scm-server.outbigdata@ubuntucmbigdata1:/opt/cm-5.6.0/log/cloudera-scm-server$ cat cloudera-scm-server.out +======================================================================+|      Error: JAVA_HOME is not set and Java could not be found         |+----------------------------------------------------------------------+| Please download the latest Oracle JDK from the Oracle Java web site  ||  > http://www.oracle.com/technetwork/java/javase/index.html <        ||                                                                      || Cloudera Manager requires Java 1.6 or later.                         || NOTE: This script will find Oracle Java whether you install using    ||       the binary or the RPM based installer.                         |+======================================================================+bigdata@ubuntucmbigdata1:/opt/cm-5.6.0/log/cloudera-scm-server$

 

 

 

 

 

  解决办法

 一个是OS的环境变量,一个是脚本运行时候的设置
bigdata@ubuntucmbigdata1:/opt/cm-5.6.0/etc/init.d$ sudo vim cloudera-scm-server
 
 
export JAVA_HOME=/usr/java/jdk.1.7.0_80

 

   它的下载链接

http://download.oracle.com/otn/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz

 

 
 
 
bigdata@ubuntucmbigdata1:~$ sudo /opt/cm-5.6.0/etc/init.d/cloudera-scm-server startStarting cloudera-scm-server:  * cloudera-scm-server startedbigdata@ubuntucmbigdata1:~$

 

 
 
 

 

 

 

 

 

转载于:https://www.cnblogs.com/zlslch/p/7077979.html

你可能感兴趣的文章
oracle缩小表空间
查看>>
iOS11新特性之导航栏和largeTitle的设置
查看>>
hibernate联合主键不便之处(转)
查看>>
货币体系
查看>>
Makefile
查看>>
net.ipv4.tcp_tw_recycle
查看>>
printf格式控制符的完整格式
查看>>
Java 语法 索引 ----- 异常
查看>>
Rommel - C# 浅谈 接口(Interface)的作用
查看>>
Linux企业级项目实践之网络爬虫(11)——处理http请求头
查看>>
ISV客户博客系列:Windows Azure上的Softlibrary 和 Kern4Cloud
查看>>
Windows Azure-2.5天免费深度技术训练营——面向软件工程师和架构师
查看>>
云与移动有何共同点?
查看>>
【leetcode】Count Primes
查看>>
LTE引理——解决数论竞赛题的利器
查看>>
国外论坛问题集
查看>>
Bek Trak Trik for wireless WPA/WPA2 & SSH & email
查看>>
CMurphi入门笔记(六)——规则,起始状态和不变式
查看>>
[LeetCode] Number of Lines To Write String
查看>>
[LeetCode] Can Place Flowers
查看>>