Find answers, ask questions, and share your expertise
Recently active
Hi,The repository https://repository.cloudera.com/artifactory/cdh-releases-rcs is not working and obtain the "Error 500 Internal Server Error"When I try to download the library https://repository.cloudera.com/artifactory/cdh-releases-rcs/org/apache/zookeeper/zookeeper/3.4.5-cdh5.4.0/zookeeper-3.4.5-cdh5.4.0.jar, I get a 500 error.On Friday the 12th, it was working.
Hello everyone,I need help in understanding if the NiFi Registry is appropriate for the kind of management I need to do in my caseI have a main nifi cluster, and the usual environments used in software development, but in the prod env the cluster is gonna be replaced by several different, indipendent clusters.I will also have a package logic, meaning that for example, one of the production clusters might have a certain processor group, where another one might not.Versioning will also managed through Git, does it conflict or cause any issues with the registry?Does the registry allow for updating only certain processor groups depending on the cluster i am working on, even if the shared dev env contains all the packages? Moreover, how does the registry work in the backend? For example, do ALL the PG get downloaded, even if only a few are gonna get installed? Security is the main concern here, because i can't download on a cluster a PG that is not supposed to be there, even if i am not gon
I'm working with Airflow jobs in CDE. In my case, I have a resource that contains two files: one is the DAG file, and the other is a custom Python script that I want to import into the DAG.According to the documentation, resources in Airflow are mounted under /app/mount/<PREFIX>. However, when a job is created or updated, the DAG is validated before the resources are actually mounted in that folder, which causes the import to fail.If I encapsulate the import inside a PythonOperator, it works without issues, because at that point the resources are already available and the file can be found. The error I get during validation is always something like:"failed: invalid request: Invalid DAG: dag_import: Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/tmp/tmpfx_nrhlx/dag.py", line 6, in <module> from myModule import func ModuleNotFoundError: No module named 'myModule'"I’ve tried not only creating th
In a pyspark code which reads a hdfs path in it's respective format(text, orc, parquet) and writes it in parquet format in ozone path.Data is huge.1) How to do resource calculations for the pyspark jobLike no. of cores, no. of executors, memory allocation 2) Is there a way we can dynamically read the data from hdfs by adjusting according to it's file type. 3) What should be the optimal solution and approach for the data movement and what input mappings the approach should use.
Hi,We have a flow created with ListSFTP , we have it scheduled it once per day, but for some reason if files are not available at source, we would like to Stop it and execute Run Once and Start the Primary Processor again.These step work fine from NiFi UI but when we try to use NiFi Api (/processors/{id}/run-status) to stop the Primary processor, the Processor wont stop, we are passing the latest Version Id and Client Id as well.any suggestion on how to fix this ?
We have seen that a CDP AWS Datahub cluster was created but failed shortly after due to the master node becoming unreachable, resulting in errors like:1) Cluster creation timeout2) Unreachability3) Abrupt failure due to unhealthy nodesWe have seen that our custom service "MY_SERVICE" was ruled out based on cluster logs and suspect network or connectivity issues.We have also observed:The Cloudera Manager instance in our CDP AWS Datahub environment is currently marked as unhealthy and is not responding. AWS diagnostics show that the instance status check has failed at the OS level, indicating a deeper issue with the instance configuration itself.
Environment:- CDP Public Cloud (AWS)- DataHub cluster with CDH 7.3.1- Custom service: 'Service_Name'- Deployment via cluster template + pre/post recipesProblem:Cluster creation fails with the error:```No service type 'Service_Name' available for cluster with version 'CDH 7.3.1'```What we have done:- Created a valid 'Service_Name.jar' with:- 'descriptor/service.sdl'- 'cloudera-service.json' (includes '"cdhVersion": { "min": "7.3.1"}')- Used **pre-recipe** to download and place CSD and parcel files in '/opt/cloudera/csd/' and '/opt/cloudera/parcel-repo/'- Used **post-recipe** to distribute and activate parcels via Cloudera Manager API- Verified JAR contents and permissions- Still getting the same error during cluster creationERROR:Installation of CDP with Cloudera Manager has failed. Please find more details on Cloudera Manager UI. Failed command(s): ClusterTemplateImport(id=1546337329): java.lang.IllegalArgumentException: No service type 'Service_Name' available for cluster with version
How to run spark df.write inside UDF called in rdd.foreach or rdd.foreachpartitionI.e. spark session object inside executor.
I want to config haproxy as LB for nifi web. My nifi cluster is configured using self certificate. When accessing to nifi web, I got the error user unauthorization. Here is my config:global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 user haproxy group haproxy daemon stats socket /var/lib/haproxy/statsdefaults log global mode http option httplog option dontlognull timeout connect 5000 timeout client 50000 timeout server 50000 timeout http-request 10s timeout http-keep-alive 10frontend nifi bind *:80 mode http default_backend nifi http-request set-header X-ProxyScheme http http-request set-header X-ProxyHost %[hdr(host)] http-request set-header X-ProxyPort 80 http-request set-header X-Forwarded-For %[src] http-request set-header X-Forwarded-Proto httpbackend nifi mode http server nifi01 10.29.144.56:8443 ssl verify none server nifi02 10.29.144.57:8443 ssl
Hello,Based on this example in Iceberg doc I tried to create a table using a custom hadoop catalog.Using Hue in CDP 7.2 I performed SET iceberg.catalog.hadoop_cat.type=hadoop;SET iceberg.catalog.hadoop_cat.warehouse=s3a://my-bucket/hadoop_cat_warehouse;CREATE TABLE iceberg_hadoop_cat_table (id Integer,name String) STORED BY 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' TBLPROPERTIES ('iceberg.catalog'='hadoop_cat'); But received Error while compiling statement: FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.ddl.DDLTask. java.lang.IllegalArgumentException: Table location not set Did I miss something ? Is CDP suporting that ?Thanks,Laurent
How can I ensure NiFi runs the correct Python script for each processor?Is there a proper way to structure and load multiple Python processors in NiFi?Any tip to debug or force NiFi to pick the updated script?
In NiFi 2.4 and above, the Jython engine is no longer available in ExecuteScript.Previously, I used scripts like this to read and update attributes:val = flowFile.getAttribute('x')flowFile = session.putAttribute(flowFile, 'x', str(int(val) + 10))Now I want to do the same using Python in NiFi 2.4+:Read an attribute (e.g., x)Compute a new valueWrite it back as an attribute (or a new one)Keep the original FlowFile content unchangedWhat’s the recommended way in NiFi 2.4+?Any official docs, samples, or best practices for this scenario would be very helpful.
<userGroupProvider> <identifier>file-user-group-provider</identifier> <class>org.apache.nifi.authorization.FileUserGroupProvider</class> <property name="Users File">./conf/users.xml</property> <property name="Initial User Identity 1">nifi</property> <property name="Initial Group Identity 1"></property></userGroupProvider><accessPolicyProvider> <identifier>file-access-policy-provider</identifier> <class>org.apache.nifi.authorization.FileAccessPolicyProvider</class> <property name="User Group Provider">file-user-group-provider</property> <property name="Authorizations File">./conf/authorizations.xml</property> <property name="Initial Admin Identity">nifi</property> <property name="Initial Admin Group"></property> <property name="Node Identity 1"></p
We are running Apache NiFi 2.4 (NifiKop Helm chart) in a clustered environment.When NiFi attempts to start up and synchronize with Bitbucket Cloud Registry Client, the application fails to fully initialize.We have:72 process groups under version control (Bitbucket Cloud registry).nifi.web.jetty.threads=30 (max web threads).nifi-atlassian-nar-2.5.0-SNAPSHOT.narWe are observing inconsistent startup behavior:In some cases, NiFi starts successfully, but the logs contain repeated errors:java.io.IOException: too many concurrent streams (from the JDK HTTP/2 client used by the Bitbucket registry integration).Even though these errors appear, the cluster eventually loads, and the UI becomes available.In other cases, NiFi fails to start entirely. It gets stuck ( The UI is visible for a few minutes but then it appear like an empty canvas where you cannot change or create anything) at the following log entry and does not progress further:2025-09-04 13:57:41,246 INFO [Framework Task Thread-27]
Hello All.What problems can there be when copying data between two clusters with different major versions if you use hdfs://... instead of webhdfs://...hadoop distcp hdfs://<namenode>:<port> hdfs://<namenode>Examle from documetntation -Copying between major versionsRun the distcp command on the cluster that runs the higher version of Cloudera, which should be the destination cluster. Use the following syntax:hadoop distcp webhdfs://<namenode>:<port> hdfs://<namenode>Note the webhdfs prefix for the remote cluster, which should be your source cluster. You must use webhdfs when the clusters run different major versions. When clusters run the same version, you can use the hdfs protocol for better performance.For example, the following command copies data from a Cloudera source cluster named example-source to another Cloudera version destination cluster named example-dest:hadoop distcp webhdfs://example-source.cloudera.com:8020 hdfs://example-dest.clouder
Dear Support Team,I hope this message finds you well.I am currently working on setting up Trino to query data from Hive. However, I am encountering difficulties related to Kerberos authentication. Despite following available documentation, I have not been able to successfully connect to the Hive. I think there is something wrong with my KERBEROS settings. When I use telnet or ping, I can connect to HIVE correctly, but when I use trino CLI, it shows that it is socket is closed by peer. I would appreciate your guidance on:1. I would like to ask whether I need to set up Kerberos separately for trino connection? 2. How can I get relevant information about kerberos authentication, such as keytab.Here are some details about my setup:(I think maybe at least this information is needed, but I don't know where to get them as following)1.hive.metastore.client.principal=trino.example.com 2.hive.metastore.client.keytab=trino.keytab .Please let me know if there are any files I shoul
Hi Team,Below are the basic steps that I am following to upgrade Nifi from version 1.23.2 to version 2.3.0 on my RHEL 9 server:unzip nifi newer version: unzip nifi-2.3.0-bin.zipcopying flow files from older to newer version: cp nifi-1.23.2/conf/flow.* nifi-2.3.0/conf/copying state directory from older to newer version: cp -r nifi-1.23.2/state nifi-2.3.0/state/update nifi properties for sensitive prop key: nifi.sensitive.props.key=<<same as older version>>start nifi: sh nifi-2.3.0/bin/nifi.sh startProblem Statement:I am getting the Nifi UI console for newer verion (Nifi-2.3.0). All the processGroups Or Processors those were in older verion copied to new version as well. But few processors (like joltTransformation, publishKafka and etc), it still showing that those are using 1.23.2 nar file.Troubleshooting steps, but did not work:Though I have deleted the work directory and revalidated that lib is not using any nar file of older version.Delete work directory:&n
Hello All,I am new to Apache Nifi where we have a requirement to convert a user input date into Nifi date format and use it in an sql query running inside an executeSQL processor.I am facing challenge while converting the user input date, Any help would be really appreciated.Below are my flowfilesGenerateFlowfile with a Custom Date properties with value as "2023-01-15 10:30:00"UpdateAttribute using the Custom Date as End_date with value as ${'Custom Date':plus(864000000):format('yyyyMMddHHmmss')}ExecuteSQL using End_date in Oracle query as " TO_DATE ('${End_Date}', 'YYYYMMDDHH24MISS')"Also is there any better way to handle this.
Hi Team,Could you please provide detailed steps on how to connect to my Cloudera trial account from the command line on a Mac?The host address is: coordinator-jwemca0ltng5.dw-jwemca0ltng5.t7gcn3.cloudera.siteThank you, Venkat
I have deployed a single node cluster in my lab. It consists of two virtual machines implemented in VMware: one manager and one host.Trying to Add Cloudera Management Service to address warning “Unable to issue query: could not connect to host monitor”.This is a test of my database: [root@cloudera-manager ~]# hostname -A cloudera-manager.interop.local cloudera-manager [root@cloudera-manager ~]# psql -d scmdb -U scm -W Password for user scm: psql (10.23) Type "help" for help.I entered the following in the Setup Database GUI: Type: PostgreSQL Database Hostname: cloudera-manager.interop.local Database Name: scmdb Usename: scm Password: xxxxxxxSelecting Test Connection fails.Any ideas?Dalier.
Hi! I am testing the integration between Cloudera Manager and HSM .For that purpose I have deployed a singe node cluster in my lab. It consists of two virtual machines implemented in VMware: one manager and one host.Getting and error trying to complete Installing Cloudera Navigator Key HSM.Here are the steps I took: 1. mkdir -p /var/www/html/cloudera-repos/cm72. wget https://xxxxxx:xxxxxx@archive.cloudera.com/p/cm7/7.13.1.0/repo-as-tarball/cm7.13.1.0-redhat8.tar.gz -P /var/www/html/cloudera-repos/cm7/3. tar xvfz /var/www/html/cloudera-repos/cm7/cm7.13.1.0-redhat8.tar.gz -C /var/www/html/cloudera-repos/cm7 --strip-components=14. sudo chmod -R ugo+rX /var/www/html/cloudera-repos/cm75. In another ssh session, start a Python http.server in the /var/www/html directory. 6. Through vSphere launch a WEB console.7. Launch the browser and go to https://localhost:8900/cloudera-repos/ and verify the extracted files are present. Checked OK.8. cat /
Hi everyone,I'm a very new user and am currently using Nifi to design a system that will automatically download files from an SFTP server. I will be utilizing "Tracking Entities" as the listing strategy.However, sometimes I might need to re-download files from the server, so I need a method to clear/reset the state of the ListSFTP processor. All of the replies I looked at said to right-click, select "View State" and click on the "Clear State" link.But there's no such link, at least for 2.5.0 on my machine: I have the "filter" text box, a list where I can sort things by "key" or "value" and the "close" button. I'm at a loss as to how to do this.Another post suggested that I delete the directories storing the data used by ListSFTP, but a) I feel that that is not a very elegant solution, and b) can someone point out to me which directories are these?All help would be greatly appreciated.
Hello,I installed NiFI 2.4.0. I added LDAP accounts and made the necessary settings for users to log in. However, users receive an “Insufficient Permissions” error after the login step. I granted permissions to users from the policy tab on the UI screen. What other settings do I need to make?Here are the configs I have setup for my authorizers.xml:Spoiler (Highlight to read)<userGroupProvider><identifier>file-user-group-provider</identifier><class>org.apache.nifi.authorization.FileUserGroupProvider</class><property name="Users File">./conf/users.xml</property></userGroupProvider><userGroupProvider><identifier>ldap-user-group-provider</identifier><class>org.apache.nifi.ldap.tenants.LdapUserGroupProvider</class><property name="Authentication Strategy">SIMPLE</property><property name="Manager DN">LDAP_USER</property><property name="Manager Password">Password1</property><pro
Hi Expert,I've the incoming flowfile have a attribute somethings like cdc = 12. And I'd like to list file in the folder looks like /home/user/cdc=${cdc}.Because the listfile not required an incomming flowfile. So How can I achieve this?Thank you so much.
I cloned a cdp 7.3.1-1 one node that is kerb enabled, to connect to a kdc server in a different domain.During the kerberos wizard, I choose "Administration" | "security" | "Kerberos Credentials" | "Import KDC Account Manager Credentials", and put in valid username and password, then I get "kinit: Preauthentication failed while getting initial credentials"the same user name / pwd pair, I can do kinit xx@TEST.LAN, and get valid results from klist. So I know the credential is good. I have validated on the AD server, use delegation wizard to give add, modify delete rights to the user xx.If I run Generate Missing Credentials, I see "SIMPLE_PWD_STR='-x -D cloudera@old kdc server -w REDACTED'", and this refers to the old kdc server.So I need to know how to change the setting on ldaps and how I can solve the issue with kinit: Preauthentication failed while getting initial credentials
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.