Find answers, ask questions, and share your expertise
Recently active
Good Morning,I'm flummoxed and worried. I have a significant flow that handles parquet files, and I can no longer make it work in version 2.0. Specifically, I used a ConvertRecord processor with a ParquetReader and a JsonRecordSetWriter.In the new version, 2.0, There doesn't appear to be a ParquetReader, anymore. There also doesn't appear to be any documentation about the ParquetReader being deprecated.Please help. This flow is critical to me. I am also open to suggestions on how to accomplish the same conversion in a different manner.
Attempting to add a new queue using YARN Queue Manager UI. After saving, the following error message appears: Validation failed for Add queue operation! Error message:<?xml version="1.0" encoding="UTF-8" standalone="yes"?><RemoteException> <exception>AuthorizationException</exception> <message>Unable to obtain user name, user not authenticated</message> <javaClassName>org.apache.hadoop.security.authorize.AuthorizationException</javaClassName></RemoteException> Environment: CDP DC 7.1.4Kerberized: YesTLS: NoLDAP/AD: Yes Checked Ranger logs and Audit logs, Yarn RM and security logs. Couldn't find any related errors in those log files. The Ranger Audit logs show the user accessing the YARN queue but does not show a denied result. There are LDAP/AD related errors in Usersync...would that cause authentication issues for YARN Queue Manage
Hi,I have 3-node Nifi cluster using self signed certificate. and that is working fine. Now I want to run these 3 node Nifi UI (port 8443) behind Load Balancer. The changes I have in nifi.properties file is: nifi.web.proxy.host=localhost:8443,nifiinstance-group-1:8443,<load-balancer> All Nifi UI has same credential. and loadBalancer is using HTTP connection. Now, Nifi UI is coming up, but while passing the credentials it is throwing error: there is no such error in nifi logs:3X.XX.XX.XX - - [28/Dec/2023:11:03:12 +0000] "GET /nifi/ HTTP/1.1" 200 21126 "http://3X.XX.XX.XX/nifi/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36" Please guide me with the root cause if this problem and how to solve this?
There is a bug with the InvokeHTTP processor in version 2.0. I carried over my flows from version 1.23, which I upgraded to 1.24, and then I exported the flows as processing groups and imported them into version 2.0. These flows worked fine, previously. In one, I have an InvokeHTTP processor that is sending the document to a Tika server for processing. In version 2.0 there is a new property in this processor that was added. I did not put it there. The documentation makes no mention of it.The property was `Proxy Type` and it's value was `http`. I tried to set it as an empty string, but I continued to get a failure. The error I was getting was:18:17:26 UTC ERROR InvokeHTTP[id=dfae880c-b84a-3f2c-f1d9-941b8fc625eb] Request Processing failed: FlowFile[filename=random_20210909a.docx]: java.lang.IllegalArgumentException: Unexpected char 0x20 at 5 in header name: Proxy TypeEven after setting this property to an empty string, the error persisted. I remedied the situation by del
Hi all, I have built an Apache nifi cluster consisting of 5 nodes and a separate zookeeper server. After that I login to webui and use the ListenUDP processor. This processor opens for example 50000 port on all nodes and it can receive information on any node. For example I will send information to host1:50000, then it should distribute the information on all nodes (host2, host3, host4, host5). It does all this and everything works, but I have two questions.1) Does host1 participate in sending logs further down the processors or does it just receive and distribute?2) The Nifi cluster is called fault tolerant, but what if host1 becomes unavailable? Essentially it will not be able to receive information and distribute it to nodes. Is there any solution for this? So that when host1 goes down, the information can be transferred to host2?
at first, i want to reuse my model in HDFS, but it reported something wrong:it seems to be because the spark version is not set up correctly, I read the source code and found that spark calls sc.version when it stores the model. However, embarrassingly, the spark2.4.0 that comes with CDH6.3.2 that I use produces the following result: SPARK_VERSION is empty. I need to use CDH spark to save and read the model, what should I do in this case, thanks very much!
Hey there,I'm trying to create a nested JSON using SQL in NiFi, but the output I'm getting has the nested part as a string. Here's the query I'm using:SELECTorder_id,JSON_ARRAYAGG(JSON_OBJECT('order_Item_Seq_Id', order_Item_Seq_Id,'product_Id', product_Id)) as order_itemFROM order_itemGROUP BY order_id;The output looks like this:[{"order_id": "10000","order_item": "[{\"product_Id\": \"10007\", \"order_Item_Seq_Id\": \"00101\"}]"}]But I want it to be a valid nested JSON like this:[{"order_id": "10000","order_item": [{"product_Id": "10007","order_Item_Seq_Id": "00101"}]}]I'm hoping for a solution using Apache NiFi or Jolt.Any help would be appreciated.Thank you!
Hi guys! I have json like that:{"id" : "20","user" : {"name" : "John","date" : ""}}I transform this date to Long using nifi langugage ${date:isEmpty():ifElse('',${date:toDate('yyyy-MM-dd HH:mm:ss'):toNumber()})} and after this i do in jolttrasformation something like[{"operation": "shift","spec": {"idTransakcji" : "id","date": "user.date",}},{"operation": "modify-overwrite-beta","spec": {"user": {"date": "=toLong(@(1,date))"}}}] and it works. But I have problem beacause when I have emptyString in this date i need to transfer it in null(not null in String) and i dont know how to do it using JoltTransformation or something else so as not to lose what I already have and have null only when there is an empty string.
Hi everyone,I'm currently encountering an issue related to passing request bodies in my workflow. Here's a breakdown of the situation:In my workflow, I have a total of 9 processors, all of which are InvokeHTTP Processors utilizing post requests. For each post request, I need to include a request body.The challenge lies in figuring out how to effectively pass the body using the InvokeHTTP processor. Presently, I am unable to accomplish this by utilizing the InvokeHTTP processor directly. We've attempted using GenerateFlowFile to pass the body, but it cannot be seamlessly integrated into the workflow. Specifically, I am unable to insert GenerateFlowFile between Processor 3 and Processor 4, for example.One potential solution we've considered is creating individual GenerateFlowFile instances for each processor outside the workflow. However, this approach introduces complications, especially when one processor is dependent on the output of a previous processor. For instance, if Processor 5
In my flow iam publishing data to kafka topic , if there is failure , that request should go to failure relation where iam publishing that data to error topic , but in my case when there is not connectivity with kafka or kafka broker value is not correct request is getting queue in PublishKafka processor not moving to failure relation .This queue will effect my other requests any even my error handling logic .Please suggest some solutionAttaching the image of error and my nifi flow-
I was trying to find some documents about where would the location for HS2 & HMS logs be located for CDP-PC on AWS, but could get none the nearest I could get is https://docs.cloudera.com/data-warehouse/cloud/troubleshooting/topics/impala-logs-s3.html. but this is not what I want. Appreciate any help in this.
Hello Team,I am running a process in which i am trying to run beeline command.While running beeline command with sudo it is working but if i am trying to run beeline in a process which if forked from parent process with the hive user it is failing with error 4 Can you please help me to debug what's going wrong or anything that i need to set.If i do su hiveuser and run the same command t works but while running via process it is failing.Command that i see while running via fork process :bash /opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0.15945976/bin/../lib/hive/bin/beeline -u 'jdbc:hive2://machine1.domain.com:2181/default;password=***;principal=hive/_HOST@DOMAIN.COM;serviceDiscoveryMode=zooKeeper;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=*****;user=HiveUser;zooKeeperNamespace=hiveserver2' -n loki -n /tmp/cmdcvhive.4015998.140520474391872 --showHeader=false --outputformat=tsv2 -e 'use underscoretest; show tables;'
Hi,We are currently working on scenario to connect to secured Rabbitmq server for consuming messages. We have used StandardSSLContextService for that purpose and configured both truststore and keystore properties. These certs are created specific to Rabbitmq connection.Everything is working fine as expected but the only issue we are facing is that when both keystore and truststore are expired and we need to update the certs currently the only way we see is to restart the server or controller service.But we would like to know if there is any other way the NIFI StandardSSLContextService can check if the cert is expired and if we provide a new keystore and truststore then it will reload the latest certs without the need for restarts.Any suggestions on this issue is greatly appreciated.
Hi,I have restarted the cluster and services like hive, yarn, Oozie etc. are not getting started because of following error, we are using CDP 7.1.7Role failed to start due to error java.lang.RuntimeException: com.cloudera.cmf.service.config.ConfigGenException: Failed to generate client configs.Can anyone please support here as picture is not cleat what to check here.2023-11-28 08:14:06,415 ERROR Staleness-Detector-1:com.cloudera.cmf.service.config.components.ProcessStalenessDetector: Failed to check staleness for service client configs: DbService{id=1546335860, name=hive}com.cloudera.cmf.service.config.ConfigGenException: Failed to generate client configsat com.cloudera.cmf.service.AbstractClientConfigHandler.buildClientConfigFiles(AbstractClientConfigHandler.java:151)at com.cloudera.cmf.service.AbstractClientConfigHandler.buildClientConfig(AbstractClientConfigHandler.java:163)at com.cloudera.cmf.service.AbstractClientConfigHandler.createClientConfig(AbstractClientConfigHandl
Hi ,iam retrying a flow file 3 times before moving moving it to failure relationship , with each retry i want to have 10 seconds gap in between them , so 2nd retry will happen after 10 seconds .iam not able to understand how to use wait processor for this . What should be the configurations of that processor .iam using older version of nifi so i can not use retryFlowFile processor .
Hello, We are using AD for Kerberos. When we try to Generate missing credentials, we are getting error "ERROR GenerateCredentials-0:com.cloudera.cmf.security.GenerateCredentialsCommand: unable to create credential for role 785 due to:/opt/cloudera/cm/bin/gen_credentials_ad.sh failed with exit code 19 and output" "SASL/GSSAPI authentication startedSASL username: user@domainSASL SSF: 0ldap_add: Constraint violation (19)additional info: 000021C7: AtrErr: DSID-03200E7F, #1:0: 000021C7: DSID-03200E7F, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 90303 (servicePrincipalName)" We got to know that there was a bug in Microsoft AD patch of November 2021 and Cloudera have a KB article with some suggestions to fix this. We have tried all of those options like disabling SPN on AD, Import Credentials with AD administration user account, removing from domain and generating missing credentials...but we get the same error every time. It tried to create HTTP principal everytime and fai
/opt/cloudera/cm/bin/gen_credentials_ad.sh failed with exit code 19 and output of <<+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin+ KEYTAB_OUT=/var/run/cloudera-scm-server/cmf2077611128110226334.keytab+ PRINC=HTTP/vsrisdxxxxx.mastnd.cloudera.XXXXX.local@XXXXXXXX.LOCAL+ USER=syzutmdaGr+ PASSWD=REDACTED+ DELETE_ON_REGENERATE=false+ SET_ENCRYPTION_TYPES=false+ ENC_TYPES_MASK=24+ USERACCOUNTCONTROL=66048+ ACCOUNTEXPIRES=0+ OBJECTCLASSES='objectClass: topobjectClass: personobjectClass: organizationalPersonobjectClass: user'+ DIST_NAME='CN=syzutmdaGr,OU=Cloudera-Accounts,OU=Accounts,OU=Teir 2,OU=Admin Teiring,DC=OneBank,DC=Local'+ '[' -z /var/run/cloudera-scm-server/krb56173003423111410977.conf ']'+ echo 'Using custom config path
This is a new setup for CDP 7.1.6. Issue:ResourceManager failed to start. NodeManger and Jobhistory server are running. 8:58:49.871 AM FATAL ResourceManagerError starting ResourceManagerorg.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /confstore/CONF_STOREat org.apache.zookeeper.KeeperException.create(KeeperException.java:120)at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:1793)at org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:274)at org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:268)at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:67)at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:81)at org.apache.curator.framework.imps.DeleteBuilderImpl.pathInForeground(DeleteBuilderImpl.java:265)at org.apache.curator.framewo
Hi ,is there any idle connection timeout for ConsumeKafka and PublishKafka processors in NIFI.Do these processors go to idle state if no data in incoming ??if yes then what is the time in which they will go to idle state in case of no data is coming ??? and is there any way to set this time ourself ???
Hi Guys, I would like to know how to set up authentication for spark history server, so that unauthorized users cannot view the spark history server web ui, any help would be appreciated, thanks! 1. I do notice there are below statements in the official spark document:“Enabling authentication for the Web UIs is done using javax servlet filters. You will need a filter that implements the authentication method you want to deploy. Spark does not provide any built-in authentication filters.” 2. There is also a thread on stackoverflow regardig this : “You re-use Hadoop's jetty authentication filter for Kerberos/SPNEGO: spark.ui.filters=org.apache.hadoop.security.authentication.server.AuthenticationFilter and spark.org.apache.hadoop.security.authentication.server.AuthenticationFilter.params=type=kerberos,kerberos.principal=${spnego_principal_name},kerberos.keytab=${spnego_keytab_path}”. with kerberos authentication enabled in CDH6.3, I followed the instruct
Hello everyone,I'm seeking assistance from those experienced in NiFi for a specific challenge. I use NiFi for internal tools and simple integrations within my company, organizing different functionalities into separate ProcessGroups. These functionalities include converting data types (e.g., from JSON to CSV), generating dummy data, and sending data to a partner through an API.To make all ProcessGroups accessible through an endpoint, I've implemented a setup with a "HandleHttpRequest" processor listening on a specific port in the main canvas. Subsequently, a "RouteOnAttribute" processor is used to route requests to the appropriate ProcessGroup based on the URL path.However, this approach has its drawbacks. The canvas becomes cluttered, requiring encapsulation of flows within more general ProcessGroups. Additionally, every time I add a new flow, I have to stop the "RouteOnAttribute," update it, link the new relationship, and then restart it (I know I can use NiFi API to accelerate this
I am attempting to use the NiFi StandardOauth2AccessTokenProvider 1.23.2 with the ConsumeIMAP processor in order to retrieve emails from Microsoft Outlook.When I configure using a grant type of either Client Credentials or Refresh Token, the "Can acquire token" validation always fails with a 400 response code.Upon examining the logs, the error reads: ERROR [Verify Controller Service Config Thread-1] o.a.n.o.StandardOauth2AccessTokenProvider StandardOauth2AccessTokenProvider[id=ba2358f5-018b-1000-e706-d1406dd00474] OAuth2 access token request failed [HTTP 400], response:{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'grant_type'. Trace ID: 42b51bc0-3865-441e-abb2-200be69b6a00 Correlation ID: 1d0d67de-c1c3-4f0c-9f82-528b027ba18b Timestamp: 2023-11-13 14:41:12Z","error_codes":[900144],"timestamp":"2023-11-13 14:41:12Z","trace_id":"42b51bc0-3865-441e-abb2-200be69b6a00","correlation_id":"1d0d67de-c1c3-4f0c-9f82-528b0
Hi guys,I have some problems with transform date from string to long in NIFI. I have date like this: "02-01-1968|" and I need to transform this to long. i am using UpdateAttribte Processor to format it to number like this: ${my_date:toDate("dd-MM-yyyy","GMT"):toNumber()})} but I have result like this: "my_date" : -63072000000 .Does anyone know how to solve this better?
Hi guys! i have some problems with JoltTransformation in NIFI. I have plain json like that:{"id": "c47f79f5-77b1-45d1-91df-968c2fa3def8","system" : "OP","sourceSystem" : "DKG","name" : "Agnes","lastName" : "Smith","mail" : "a.smith@gmail.com","country" : "Australia","city" : "Sydney","street" : "Colorado","building" : "23","local" : "1',"paycheck" : "3456,98',"joiningDate" : "12-09-2023","isOfAge": "true",}And i need to have output like this:{"paycheck":3456.98,"joiningDate":1702048486451,"person":{"name":"Agnes","lastName":"Smith","mail":"a.smith@gmail.com","isOfAge":true,"adress":{"country":"Australia","city":"Sydney","street":"Colorado","building":"23","local":"1"}},"system_data":{"id":"c47f79f5-77b1-45d1-91df-968c2fa3def8","system":"OP","sourceSystem":"DKG"}}In addition to nesting, I need to convert date to long, paycheck to double and isOfAge to boolean.I tried use JoltTransformation and Jolt Specification like this:[{"operation":"shift","spec":{"paycheck":"paycheck","joiningDate"
Hi,we would like to activate HA for Cloudera CDP MySQL databases (hive, ranger, etc..).We have seen that there are several ways to achieve all this, mysql replication active-slave or active-active, mysql + DRDB, mysql Innodb Cluster, etc..Our goal is to achieve automatic failover of mysql, with functionality similar to those of a cluster with an active node and a standy node.From your experience, is there a recommended architecture for creating HA for a Mysql server compatible with Cloudera services? I read that some solutions could not be compatibile with Hive metastore for example.Thanks in advance.Ivo
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.