kerberos

Kafka - Could not find a 'KafkaClient' entry in the JAAS configuration java

ぐ巨炮叔叔 提交于 2019-12-23 16:34:09
问题 I'm having some troubles with a simple Kafka consumer program: 18/06/04 18:13:49 ERROR /log/log.txt: org.apache.kafka.common.KafkaException: Failed to construct kafka consumer org.apache.kafka.common.KafkaException: Failed to construct kafka consumer at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:647) at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:542) at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:524)

Kafka - Could not find a 'KafkaClient' entry in the JAAS configuration java

若如初见. 提交于 2019-12-23 16:32:23
问题 I'm having some troubles with a simple Kafka consumer program: 18/06/04 18:13:49 ERROR /log/log.txt: org.apache.kafka.common.KafkaException: Failed to construct kafka consumer org.apache.kafka.common.KafkaException: Failed to construct kafka consumer at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:647) at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:542) at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:524)

Query Active Directory in Java using a logged on user on windows

泄露秘密 提交于 2019-12-23 16:14:30
问题 How do I query the active directory in Java using the current logged on user in windows? This is possible using C++ with ldap_bind_s and passing null in the credential. It lets you bind to the AD with the current logged on user and query AD but I could not find its equivalent in Java. I saw at other places that I can use kerberos but kerberos forces me to generate a keytab file for the user and uses it to communicate with AD using GSSAPI. I want to avoid asking users to generate keytab file.

Spark Streaming - java.io.IOException: Lease timeout of 0 seconds expired

。_饼干妹妹 提交于 2019-12-23 12:38:52
问题 I have spark streaming application using checkpoint writing on HDFS. Has anyone know the solution? Previously we were using the kinit to specify principal and keytab and got the suggestion to specify these via spark-submit command instead kinit but still this error and cause spark streaming application down. spark-submit --principal sparkuser@HADOOP.ABC.COM --keytab /home/sparkuser/keytab/sparkuser.keytab --name MyStreamingApp --master yarn-cluster --conf "spark.driver.extraJavaOptions=-XX:

Choosing Kerberos (SPNEGO) Java library for web application single sign-on [closed]

天大地大妈咪最大 提交于 2019-12-23 09:59:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm currently working on implementing enterprise authentication mechanisms in our Java web-application, including single sign-on. Windows networks are what we primary target at, and Kerberos sounds a reasonable choice. Sidenote: as far as I understand, the protocol used in web (HTTP) environment to SSO is SPNEGO

Web application Kerberos authentication: Is the proper way to combine with cookies?

被刻印的时光 ゝ 提交于 2019-12-23 09:15:34
问题 The scenario: An enterprise, behind-the-firewall Python web application. Kerberos should be used to authenticate the users. I have working code that sends the correct responses from the server (the Negotiate header etc.) and get the Windows user name of the user accessing the application, using the kerberos-sspi package I have little experience with Kerberos, but some experience with web applications. In other Python web apps I have created that use a built-in user database, the

Kerberos error when trying to connect to remote Oracle database using ODP.NET

一世执手 提交于 2019-12-23 05:32:52
问题 this is a follow-up to my previous question. I am trying to use ODP.net in Visual Studio 2015 to connect to a remote Oracle 11gr2 server. The specific reason is for SSRS reports. I have installed this version of ODT/ODAC, as recommended by Visual Studio: http://www.oracle.com/technetwork/topics/dotnet/whatsnew/vs2012welcome-1835382.html (for more info, please see my previous question). Without even opening up a solution, on the landing page of VS2015 I tried using the ODP.net driver by using

Hadoop cannot access /logs/. in secure mode

北慕城南 提交于 2019-12-23 05:15:13
问题 I am using hadoop-2.6.0 and enabled security with kerberos. All working fine. But i am unable to access the logs files from browser. It shows Problem accessing /logs/. Reason: User babu is unauthorized to access this page. I tried with all users but no luck. Can anyone help me how to authorize any user to access log files? 回答1: You shouldn't access the logs directly in the FS, access is restricted to the NM user and the yarn group. Use the log-aggregation service to retrieve/view logs. See

Kerberos Java Credentials Cache

隐身守侯 提交于 2019-12-23 04:52:43
问题 I am running following code to interact with the kerberos enabled hadoop cluster. val t1 = new Thread() { override def run() { println("output of first thread") val conf = new Configuration conf.set("hadoop.security.authentication", "Kerberos") conf.set("fs.defaultFS", "hdfs://192.168.23.206:8020") UserGroupInformation.setConfiguration(conf) UserGroupInformation.loginUserFromKeytab("dummy@platalyticsrealm", "E:\\\\dummy.keytab"); val fs = FileSystem.get(conf); val status = fs.listStatus(new

Tez job fails when submitting by different user

血红的双手。 提交于 2019-12-23 04:20:28
问题 Configured Hadoop-2.6.0 HA cluster with Kerberos security. When submitting example job using tez-example-0.6.0.jar in yarn-tez framework from different user, getting the below exception Exception java.io.IOException: The ownership on the staging directory hdfs://clustername/tmp/staging is not as expected. It is owned by Kumar. The directory must be owned by the submitter TestUser or by TestUser The directory has full permission but still getting the above exception. But when submitting a job