草庐IT

Digest-Authentication

全部标签

hadoop - Spark/Hadoop - 无法找到 DIGEST-MD5 的 SASL 服务器实现

几个小时以来,我一直在尝试设置Hadoop/YARN,以便在其上执行Spark程序。但我遇到了一个错误,我完全找不到任何错误。当我尝试使用--masteryarn执行spark-submit或spark-shell命令时,出现以下异常:Applicationapplication_1481891851677_0002failed2timesduetoErrorlaunchingappattempt_1481891851677_0002_000002.Gotexception:org.apache.hadoop.security.AccessControlException:Unable

hadoop - oozie REST api POST 新配置单元作业获取 "This request requires HTTP authentication."

我正在使用RESTapi将HIVE作业提交给oozie。我尝试使用postman和curl发送请求,但收到一条错误消息:“此请求需要HTTP身份验证。”我尝试在我的Clouderaquickstart和Hortonworks上运行它,但遇到了同样的错误。config.xml是:fs.default.namehdfs://localhost:8020mapred.job.trackerlocalhost:8021user.nameclouderaoozie.hive.scriptselect*fromtest;oozie.libpathhdfs://localhost:8020/user

hadoop - master.HMaster : Failed to become active master SIMPLE authentication is not enabled. 可用:[TOKEN]

我正在尝试在我的本地MAC机器上设置hbase。我通过brew安装了hadoop和hbase。hadoop和hbase的版本分别是2.7.1和1.1.2。我正在尝试以伪分布式模式运行并希望禁用身份验证,因此在以下文件中进行了以下更改。我正在使用hbase动物园管理员。以下是启用SIMPLE身份验证的更改/etc/hadoop/core-site.xmlhadoop.security.authenticationsimplehadoop.security.authorizationfalse还对libexec/conf/hbase-site.xml进行了以下更改hbase.rootdir

security - 如何从命令行向 Hadoop 进行身份验证?删除 `ls: SIMPLE authentication is not enabled` 错误

我正在Hadoop集群上设置Kerberos身份验证。在集群外的一台机器上,每当我执行hadoopfs-ls时,我都会收到以下消息:ls:SIMPLEauthenticationisnotenabled。可用:[TOKEN,KERBEROS],这很好,因为这就是我想要的。但现在我的问题是,我如何真正成功地执行该命令?我知道如果我不进行身份验证我将无法继续,但我如何从命令行进行身份验证? 最佳答案 尝试以下步骤服务器kadmin.localaddprincuser@realm.com客户端kinituser@realm.comklis

authentication - Hadoop 身份验证 http-signature.secret 文件

我正在使用受kerberos身份验证保护的hadoop-2.6.0。对于http身份验证,有一个名为hadoop.http.authentication.signature.secret.file的属性我在core-site.xml中设置了这个属性hadoop.http.authentication.signature.secret.fileC:\http-signature.secrethttp-signature.secret文件是空的。但是http身份验证工作正常。如果我禁用此属性,则在启动节点时会出现错误。我想知道这个secret文件的用途。为什么要设置这个属性?我用谷歌搜索但

authentication - HDFS 数据节点未开始使用 kerberos

我已将kerberos身份验证添加到apachehdfs,名称节点已启动并正在运行,但我无法启动数据节点,出现此异常:2012-08-2317:05:45,648ERRORorg.apache.hadoop.hdfs.server.datanode.DataNode:java.lang.RuntimeException:Cannotstartsecureclusterwithoutprivilegedresources.atorg.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:324)at

authentication - 从 Spark 访问 Hdfs 会出现 token 缓存错误 Can't get Master Kerberos principal for use as renewer

我正在尝试运行测试Spark脚本以将Spark连接到hadoop。脚本如下frompysparkimportSparkContextsc=SparkContext("local","SimpleApp")file=sc.textFile("hdfs://hadoop_node.place:9000/errs.txt")errors=file.filter(lambdaline:"ERROR"inline)errors.count()当我用pyspark运行它时,我得到了py4j.protocol.Py4JJavaError:Anerroroccurredwhilecallingo21.

authentication - 从远程计算机将文件放在 HDFS 上时如何指定用户名?

我有一个Hadoop集群设置并在一个通用的默认用户名“user1”下工作。我想从不属于hadoop集群的远程机器将文件放入hadoop。我以一种方式在远程机器上配置了hadoop文件,当hadoopdfs-putfile1...从远程机器调用,它将file1放在Hadoop集群上。唯一的问题是我在远程机器上以“user2”身份登录,但没有给我预期的结果。事实上,上面的代码只能在远程机器上执行为:hadoopdfs-putfile1/user/user2/testFolder但是,我真正想要的是能够将文件存储为:hadoopdfs-putfile1/user/user1/testFold

PHP ssh2_auth_pubkey_file() : Authentication failed using public key: Invalid key data, 不是 base64 编码

在PHP5.3.3中(在CentOS和apache2上)我试图通过php脚本连接到SFTP。代码从构造函数中获取key和服务器详细信息function__construct(){$this->host='servername.loc';$this->port=SFTP_PORT;$this->auth_user='username';$this->auth_pub='/data/home/username/.ssh/id_rsa.pub';$this->auth_priv='/data/home/username/.ssh/id_rsa';$this->auth_pass=null;$

PHP/亚马逊 S3 : Query string authentication sometimes fails

我用PHP创建了一个简单的文件浏览器,它通过生成过期查询URL链接到文件。因此,对于目录的每次访问,都会生成一个指向每个文件的链接,该链接的有效期为900秒。我现在遇到的问题是生成的签名有时似乎会失败。这很奇怪,因为我有意使用外部S3库来生成URL和签名。事实上,我尝试了以下库来生成签名:CloudFusionS3generatorAmazonS3PHPclass库内部使用hash_hmac('sha256',...或hash_hmac('sha1',...-我也不明白为什么要使用不同的哈希算法。由于所有库都有相同的问题,所以它也可能出现在我的URL生成代码中,尽管这很简单:$buck