无法启动Cloudera Manager,站点无法访问(Can't start Cloudera Manager, site not reachable)
我有一个小型集群,在我的家庭服务器上有三个节点用于学习目的。
它最初设置后工作正常。
我还没有用它一个月,今天当我尝试使用它时,我发现Cloudera Manager GUI无法访问,我检查了3个节点之间的网络是否良好,它们可以相互ping通。
在安装了CM的主节点上,我尝试了服务cloudera-scm-server start,它显示绿色的[OK]; 当我检查状态时,它显示以下信息:
[root@pocnnr1n1 ~]# service cloudera-scm-server status -l ● cloudera-scm-server.service - LSB: Cloudera SCM Server Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-server; bad; vendor preset: disabled) Active: active (exited) since Fri 2017-09-15 20:58:24 EDT; 18min ago Docs: man:systemd-sysv-generator(8) Process: 107428 ExecStop=/etc/rc.d/init.d/cloudera-scm-server stop (code=exited, status=1/FAILURE) Process: 107467 ExecStart=/etc/rc.d/init.d/cloudera-scm-server start (code=exited, status=0/SUCCESS) Sep 15 20:58:19 pocnnr1n1.raymond.com systemd[1]: Starting LSB: Cloudera SCM Server... Sep 15 20:58:19 pocnnr1n1.raymond.com su[107494]: (to cloudera-scm) root on none Sep 15 20:58:24 pocnnr1n1.raymond.com cloudera-scm-server[107467]: Starting cloudera-scm-server: [ OK ] Sep 15 20:58:24 pocnnr1n1.raymond.com systemd[1]: Started LSB: Cloudera SCM Server.
那么,Cloudera Manager服务是启动还是停止?
当我尝试通过GUI访问CM时,它在chrome中显示如下:
无法访问此站点
192.168.211.251拒绝连接。 在Google上搜索192 168 211 251 7180 ERR_CONNECTION_REFUSED
任何人都可以帮我修复它吗? 非常感谢你。
I have a small cluster with three nodes on my home server for learning purpose.
It was working fine after it was initially set up.
I haven't used it for a month and today when I try to use it, I found Cloudera Manager GUI cannot be accessed, I checked the network between the 3 nodes are good, they can ping to each other.
On master node where CM is installed, I tried service cloudera-scm-server start, it shows me [OK] in green; when I check the status it shows the following info:
[root@pocnnr1n1 ~]# service cloudera-scm-server status -l ● cloudera-scm-server.service - LSB: Cloudera SCM Server Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-server; bad; vendor preset: disabled) Active: active (exited) since Fri 2017-09-15 20:58:24 EDT; 18min ago Docs: man:systemd-sysv-generator(8) Process: 107428 ExecStop=/etc/rc.d/init.d/cloudera-scm-server stop (code=exited, status=1/FAILURE) Process: 107467 ExecStart=/etc/rc.d/init.d/cloudera-scm-server start (code=exited, status=0/SUCCESS) Sep 15 20:58:19 pocnnr1n1.raymond.com systemd[1]: Starting LSB: Cloudera SCM Server... Sep 15 20:58:19 pocnnr1n1.raymond.com su[107494]: (to cloudera-scm) root on none Sep 15 20:58:24 pocnnr1n1.raymond.com cloudera-scm-server[107467]: Starting cloudera-scm-server: [ OK ] Sep 15 20:58:24 pocnnr1n1.raymond.com systemd[1]: Started LSB: Cloudera SCM Server.
So, is the Cloudera Manager service started or stopped?
When I try to access CM through GUI, it shows below in chrome:
This site can’t be reached
192.168.211.251 refused to connect. Search Google for 192 168 211 251 7180 ERR_CONNECTION_REFUSED
Can anyone help me to fix it? Thank you very much.
原文:https://stackoverflow.com/questions/46249196
最满意答案
创建一个maven项目并添加以下依赖项(适用于Spark最新版本2.0.0)。 您可以从在eclipse中运行JavaALSExample.java之类的简单程序开始。
spark github存储库中有更多可用的java示例,您可以参考。 希望这可以帮助。
<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-mllib_2.11</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.11</artifactId> <version>2.0.0</version> </dependency>
Create a maven project and add following dependencies (For Spark latest 2.0.0). You can start with running simple program like JavaALSExample.java in eclipse.
There are more java samples available at spark github repository which you can refer. Hope this helps.
<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-mllib_2.11</artifactId> <version>2.0.0</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.11</artifactId> <version>2.0.0</version> </dependency>
相关问答
更多-
Spark API在1.x和2.x分支之间更改。 特别是DataFrame.map返回Dataset而不是RDD因此结果与旧的基于MLlib RDD的API不兼容。 您应该首先将数据转换为RDD ,如下所示: import org.apache.spark.mllib.linalg.Vectors import org.apache.spark.sql.Row import org.apache.spark.mllib.linalg.Vector import org.apache.spark.mllib. ...
-
主要区别将来自底层框架。 在Mahout的情况下,它是Hadoop MapReduce,而在MLib的情况下,它是Spark。 更具体 - 从每个作业开销的差异 如果您的ML算法映射到单个MR作业 - 主要区别将只是启动开销,Hadoop MR是几十秒钟,而对于Spark来说1秒。 所以在模特训练的情况下,这并不重要。 如果您的算法映射到许多作业,事情会有所不同。 在这种情况下,我们将在每次迭代的开销上具有相同的差异,并且可以改变游戏规则。 假设我们需要100次迭代,每次需要5秒的集群CPU。 在火花:将需 ...
-
只需为RDD提供显式类型注释 val dataRows: org.apache.spark.rdd.RDD[Vector] = ??? 或匿名函数的结果: ... .map(line => Vectors.dense(line.split(" ").map(_.toDouble)).toSparse: Vector) Just provide explicit type annotation either for a RDD val dataRows: org.apache.spark.rdd.RD ...
-
apache spark MLlib:OLS回归(哪里?)(java)(apache spark MLlib : OLS regression (where?) (java))[2022-12-22]
很难找到因为Spark没有提供实现。 理由非常简单。 如果您有需要Spark的数据,那么计算分析解决方案的成本将会非常高昂。 如果你真的需要这个,那么RowMatrix提供了tallSkinnyQR 。 虽然它在实践中不太可能有用,但应该给你一些工作。 It is hard to find because Spark doesn't provide an implementation. The rationale is pretty simple. If you have data which requir ... -
您必须在maven文件中添加Apache Spark MLLib依赖项
org.apache.spark spark-mllib_2.11 2.3.0 ... -
首先,您需要将句子转换为向量。 val documents: RDD[Seq[String]] = sc.textFile("yourfile").map(_.split(" ").toSeq) val hashingTF = new HashingTF() val tf: RDD[Vector] = hashingTF.transform(documents) val idf = new IDF().fit(tf) val tfidf: RDD[Vector] = idf.transform( ...
-
创建一个maven项目并添加以下依赖项(适用于Spark最新版本2.0.0)。 您可以从在eclipse中运行JavaALSExample.java之类的简单程序开始。 https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/ml/JavaALSExample.java spark github存储库中有更多可用的java示例,您可以参考。 希望这可以帮助。
使用KDDCup 99数据与Spark MLLib RandomForest(Using KDDCup 99 Data with Spark MLLib RandomForest)[2021-12-23]
所以我能够找到一种方法将KDDCup 99数据集用于Spark。 我将字符串数据矢量化为整数索引,通过属性文件读取它们。 我也把标签放在记录的开头。 还使用python代码将我的最终KDDCup数据转换为Libsvm数据格式。 我可以在github存储库下面找到处理整个事情的代码。 https://github.com/keyurgolani/RandomForestSpark.git 由于Addy的贡献,能够弄清楚这一切。 So I was able to figure out a way to work ...好的等了12个小时仍然没有答案! 我挖了很多我觉得我在这里找到答案就是诀窍: sbt clean clean-files rm -rf ~/.ivy2 ~/.m2 ~/.sbt 这两行是加载时出现问题[错误]错误,打开zip文件错误[错误]对象scala.runtime未找到编译器镜像。 从我的理解,我有一些标量或mvn包破坏之前,它会导致此错误,我必须删除它们。 也可能因为sbt老了这就是为什么我干净了。 PS:如果你想找到哪些软件包坏了,请按照cli查找〜/ .ivy2~ / .m2~ / .sbt - ...对于那里的任何人,这是解决方案: StringIndexer typeIndexer = new StringIndexer() .setInputCol("type") .setOutputCol("typeIndex"); preparedData = typeIndexer.fit(preparedData).transform(preparedData); StringIndexer floorIndexer = new S ...相关文章
更多- Cloudera Manager 和 CDH 4 终极安装
- Cloudera Manager启动Solr时报错:Solr.xml not found in zookeeper
- Cloudera Manager 4.6 安装部署hadoop CDH集群
- Cloudera Manager 4.8和 CDH 4。6 安装完全手册。
- 干净卸载 Cloudera CDH 5 beta2
- Cloudera安装Hadoop集群和相关服务
- Intel Hadoop Manager安装配置
- 关于Thread类中的start()方法和run()方法
- 创建Cloudera Hadoop本地源服务器
- SGI 将推出 Cloudera Hadoop 数据分析集群
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)