Member since
08-08-2013
339
Posts
132
Kudos Received
27
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
14828 | 01-18-2018 08:38 AM | |
1571 | 05-11-2017 06:50 PM | |
9189 | 04-28-2017 11:00 AM | |
3438 | 04-12-2017 01:36 AM | |
2840 | 02-14-2017 05:11 AM |
09-21-2016
06:47 AM
Hello @Pierre Villard , yes, using HDF2.0.0 would be my preferred way, but (at the moment) I have to stick to Java1.7, hence cannot go HDF2.0....
... View more
09-20-2016
12:14 PM
Hi @Pierre Villard , thanks for sharing this. I am a bit confused, because [1] says that HDF 1.0.0 contains the Publish/ConsumeKafka processors, but I do not have them available although I am using HDF 1.2 (NiFi 0.6): Also https://community.hortonworks.com/questions/23298/nifi-does-getkafka-processor-support-reading-from.html says "HDF releases of NiFi have patched support for Kerberized Kafka clusters in HDP". Am I missing something here ?!?!
... View more
09-20-2016
10:28 AM
1 Kudo
Hi @Avijeet Dash, do you have impersonation enabled ('doAs') ? check this out, hth....
... View more
09-20-2016
10:16 AM
Hi @Pierre Villard, it is Kafka0.9.0.2.3 , shipped with HDP2.3.4 and installed via Ambari.
... View more
09-20-2016
10:02 AM
1 Kudo
Hi, I want to use standalone NiFi 0.6 to ingest data into Kafka within a kerberized HDP2.3.4 cluster. Base config ran smooth and additional config from https://community.hortonworks.com/articles/28180/how-to-configure-hdf-12-to-send-to-and-get-data-fr.html , "Section 2" has been applied. To start playing around I added a GetFile processor and connected it to PutKafka, but after starting the flow, PutKafka fails with the following error: 2016-09-20 11:44:38,076 INFO [StandardProcessScheduler Thread-6] o.a.kafka.clients.producer.KafkaProducer Closing the Kafka producer with timeoutMillis = 0 ms.
2016-09-20 11:44:38,076 ERROR [StandardProcessScheduler Thread-6] o.apache.nifi.processors.kafka.PutKafka PutKafka[id=9293cf22-d7c2-40a6-ba7e-a6d41942fc30] PutKafka[id=9293cf22-d7c2-40a6-ba7e-a6d41942fc30] failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.; processor will not be scheduled to run for 30000 milliseconds: java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.
2016-09-20 11:44:38,082 ERROR [StandardProcessScheduler Thread-6] org.apache.nifi.engine.FlowEngine A flow controller task execution stopped abnormally
java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.7.0_79]
at java.util.concurrent.FutureTask.get(FutureTask.java:188) ~[na:1.7.0_79]
at org.apache.nifi.engine.FlowEngine.afterExecute(FlowEngine.java:100) ~[na:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137) ~[na:na]
at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125) ~[na:na]
at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70) ~[na:na]
at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1247) ~[na:na]
at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1243) ~[na:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_79]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) ~[na:1.7.0_79]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) ~[na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
... 2 common frames omitted
Caused by: org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:275) ~[na:na]
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:176) ~[na:na]
at org.apache.nifi.processors.kafka.KafkaPublisher.<init>(KafkaPublisher.java:66) ~[na:na]
at org.apache.nifi.processors.kafka.PutKafka.createKafkaPublisher(PutKafka.java:281) ~[na:na]
... 15 common frames omitted
Caused by: org.apache.kafka.common.KafkaException: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: JavaLoginConfig, provider: SUN, class: sun.security.provider.ConfigSpiFile)
at org.apache.kafka.common.network.Selector.<init>(Selector.java:135) ~[na:na]
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:231) ~[na:na]
... 18 common frames omitted
Caused by: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: JavaLoginConfig, provider: SUN, class: sun.security.provider.ConfigSpiFile)
at org.apache.kafka.common.security.kerberos.Login.login(Login.java:306) ~[na:na]
at org.apache.kafka.common.security.kerberos.Login.<init>(Login.java:101) ~[na:na]
at org.apache.kafka.common.security.kerberos.LoginFactory.<init>(LoginFactory.java:34) ~[na:na]
at org.apache.kafka.common.network.Selector.<init>(Selector.java:132) ~[na:na]
... 19 common frames omitted
Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: JavaLoginConfig, provider: SUN, class: sun.security.provider.ConfigSpiFile)
at java.security.Provider$Service.newInstance(Provider.java:1259) ~[na:1.7.0_79]
at sun.security.jca.GetInstance.getInstance(GetInstance.java:243) ~[na:1.7.0_79]
at sun.security.jca.GetInstance.getInstance(GetInstance.java:190) ~[na:1.7.0_79]
at javax.security.auth.login.Configuration.getInstance(Configuration.java:352) ~[na:1.7.0_79]
at org.apache.kafka.common.security.kerberos.Login.login(Login.java:303) ~[na:na]
... 22 common frames omitted
Caused by: java.io.IOException: Configuration Error:
Line 7: expected [option key]
at com.sun.security.auth.login.ConfigFile.match(ConfigFile.java:550) ~[na:1.7.0_79]
at com.sun.security.auth.login.ConfigFile.parseLoginEntry(ConfigFile.java:439) ~[na:1.7.0_79]
at com.sun.security.auth.login.ConfigFile.readConfig(ConfigFile.java:383) ~[na:1.7.0_79]
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:283) ~[na:1.7.0_79]
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:166) ~[na:1.7.0_79]
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:124) ~[na:1.7.0_79]
at sun.security.provider.ConfigSpiFile$1.run(ConfigSpiFile.java:72) ~[na:1.7.0_79]
at sun.security.provider.ConfigSpiFile$1.run(ConfigSpiFile.java:61) ~[na:1.7.0_79]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_79]
at sun.security.provider.ConfigSpiFile.<init>(ConfigSpiFile.java:61) ~[na:1.7.0_79]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_79]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_79]
at java.security.Provider$Service.newInstance(Provider.java:1254) ~[na:1.7.0_79]
... 26 common frames omitted The PutKafka processor looks like: and the zookeeper-jaas.conf looks like ("REALM" has been replaced): #>cat /data/nifi/current/conf/zookeeper-jaas.conf
Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="/etc/security/keytabs/nifi.user.keytab"
storeKey=true
useTicketCache=false
principal="nifi@REALM;
};
KafkaClient {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=true
renewTicket=true
serviceName="kafka"
useKeyTab=true
keyTab="/etc/security/keytabs/nifi.user.keytab"
principal="nifi@REALM";
}; => keytab file is in place and readable Any hints what is causing this "Configuration error" in the PutKafka processor ? Thanks...
... View more
Labels:
- Labels:
-
Apache Kafka
-
Apache NiFi
08-02-2016
12:14 PM
Hi @Bhavin Tandel , are all the other steps running fine ? maybe posting the whole output will help.... I have similar playbook, which works fine on RHEL - name: install ambari-agent yum: name=ambari-agent state=latest
...
- name: Ensure ambari-agent is running and enabled
service: name=ambari-agent state=restarted enabled=yes guessing you are on a RHEL based distro... What if you do a manual "service ambari-agent restart" ?!?!
... View more
07-26-2016
06:27 PM
Hi @Kuldeep Kulkarni , thanks for your helpful posts. Is it planned to continue this series.....I am looking forward to a Blueprint including Namenode-/HMaster-HA as well as Kerberos Thanks in advance...
... View more
07-21-2016
09:04 AM
Hi @revan wabale , to answer your question clearly we need to know what type of authorization you are using for Hive. Do you have Ranger in place? If not maybe the following link shines some light on authentication in Hiveserver2 link Regards...
... View more
07-01-2016
06:14 PM
Hi @Pavel Razumtsev , thanks for the update.
... View more
06-29-2016
11:57 AM
...and in addition, the linked issues are not corresponding to the get_partitions_by_expr function.
... View more