小编Mat*_*usz的帖子

启动时Apache Spark错误

我想在Apache Spark中启用单个集群,我安装了java和scala.我为Apache Hadoop 2.6下载了火花并解压缩.我试图转动spark-shell但是却抛出了一个错误,另外,我无法访问shell中的sc.我从源代码编译但是同样的错误.我究竟做错了什么?

Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 1.3.1
      /_/

Using Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_79)
Type in expressions to have them evaluated.
Type :help for more information.
java.net.BindException: Failed to bind to: ADMINISTRATOR.home/192.168.1.5:0: Service 'sparkDriver' failed after 16 retries!
	at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
	at akka.remote.transport.netty.NettyTransport$$anonfun$listen$1.apply(NettyTransport.scala:393)
	at akka.remote.transport.netty.NettyTransport$$anonfun$listen$1.apply(NettyTransport.scala:389)
	at scala.util.Success$$anonfun$map$1.apply(Try.scala:206)
	at scala.util.Try$.apply(Try.scala:161)
	at scala.util.Success.map(Try.scala:206)
	at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
	at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) …
Run Code Online (Sandbox Code Playgroud)

java hadoop scala

11
推荐指数
1
解决办法
2万
查看次数

使用Node.js中的cassandra-driver通过SSL连接到Cassandra Apache

我尝试连接到我的Cassandra但我可能错误地配置了.我在localhost上运行它.Cassandra已经生成了认证和添加.在cqlsh中,flag -ssl没有错误.我的片段代码是

var tls = require('tls');
var fs = require('fs');
var options = {
	key : fs.readFileSync('client-key.pem'),
	cert : fs.readFileSync('client-cert.pem'),
	ca : [fs.readFileSync('server-cert.pem')]
};
var client = new cassandra.Client({
		contactPoints : ['127.0.0.1'],
		authProvider : new cassandra.auth.PlainTextAuthProvider('cassandra', 'cassandra'),
		sslOptions : tls.connect(options)
	});
Run Code Online (Sandbox Code Playgroud)

我做错了什么?请帮忙!

ssl cassandra node.js

4
推荐指数
1
解决办法
1091
查看次数

URL.createObjectURL 和字符集 UTF-8

我对文本进行编码时遇到问题

\n\n

\r\n
\r\n
var description = "jak u\xc5\xbcywa\xc4\x87?"\r\n        var blob = new Blob([description], {\r\n            type: "text/plain;charset=utf-8;"\r\n        });\r\n        var url = URL.createObjectURL(blob);\r\n        console.log(url)
Run Code Online (Sandbox Code Playgroud)\r\n
\r\n
\r\n

\n\n

我在哪里输入 url 我的描述不一样并返回 jak u\xc4\xb9\xc5\xbaywa\xc3\x84?我做错了什么?

\n

javascript

2
推荐指数
1
解决办法
3835
查看次数

标签 统计

cassandra ×1

hadoop ×1

java ×1

javascript ×1

node.js ×1

scala ×1

ssl ×1