我安装了一个带有spark运行的DSE 4.5。我需要一些帮助来传递来自Spark Shell的cassandra集群的用户名/密码。
我已将这些属性添加到conf / spark-default.conf文件
dse spark
使用
启动我的火花壳com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /11.111.11.11:9042: Host /11.111.11.11:9042 requires authentication, but no authenticator found in Cluster configuration
at com.datastax.driver.core.AuthProvider$1.newAuthenticator(AuthProvider.java:38)
at com.datastax.driver.core.Connection.initializeTransport(Connection.java:138)
at com.datastax.driver.core.Connection.<init>(Connection.java:111)
at com.datastax.driver.core.Connection$Factory.open(Connection.java:432)
at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:216)
at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:171)
at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1104)
但是当我尝试sc.cassandraTable
时仍然看到错误dse spark -Dcassandra.username=user -Dcassandra.password=pass
答案 0 :(得分:1)
看起来你可以执行这个命令
def test_view(request, format=None):
service = UserService()
service.to_something()
return Response( status=status.HTTP_200_OK )
答案 1 :(得分:0)
这对我有用:
dse -u cassandra -p cassandra spark