Find answers, ask questions, and share your expertise
Recently active
Hi Experts,Please let us know if we can use any NiFi processors for performing MSCK repair on the hive table to reflect the data that are updated by NiFi to HDFS. Thanks!Command : MSCK REPAIR TABLE tblName;
Hi guys, I'm relatively new to Apache Nifi, and there's a subject that I don't understand the logic behind, how to handle flowfiles between processors.Basically I need to extract the data from an ExecuteSQL processor, then execute another ExecuteSQL to delete the data from the destination and finally insert the data using PutDatabaseRecord, but the value of the first ExecuteSQL is overlapped by the second, and it needs to be done in that order to ensure that the data exists before deleting the old base, could anyone guide me?
Dear Cloudera Community,I am currently testing HBase for bulk loading purposes, and for this, we use the pseudo-distributed mode (single-host standalone) as our configuration. After completing all the configurations, I executed the jps command, which displayed all the necessary processes for testing. [super@dc1-apache-hbase bin]$ jps1119857 Jps1118448 NodeManager1119235 HQuorumPeer1117730 NameNode1117863 DataNode1119627 HRegionServer1118125 SecondaryNameNode1119405 HMaster1118332 ResourceManagerAdditionally, I did not use Zookeeper manually for the process; instead, I used export HBASE_MANAGES_ZK=true.However, once I enter the HBase shell, the HMaster process disappears, and I encounter the following error message:"ERROR: KeeperErrorCode = NoNode for /hbase/master"[super@dc1-apache-hbase conf]$ jps1122225 Jps1118448 NodeManager1121283 HQuorumPeer1122019 JarBootstrapMain1117730 NameNode1117863 DataNode1121675 HRegionServer1118125 SecondaryNameNode1118332 ResourceManagerI have attac
I need to use OAuth 2.0 to publish messages to a Confluent Kafka topic. NiFi doesn't have support for this out of the box, so before I build my own solution, I was wondering if anyone knew of any solutions currently being used for this that they'd be willing to share, or any existing workaround.I'm using NiFi version 2.0.0-M4. Thanks
Hello, I have been getting the below error when i am trying to startup my nifii registry : Caused by: org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C091543, comment: TLS or SSL already in effect, data 0, v4f7c]; remaining name '' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:228) at org.springframework.ldap.core.support.AbstractContextSource.doGetContext(AbstractContextSource.java:155) at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:166) at org.apache.nifi.registry.security.ldap.tenants.LdapUserGroupProvider.load(LdapUserGroupProvider.java:447) at org.apache.nifi.registry.security.ldap.tenants.LdapUserGroupProvider.onConfigured(LdapUserGroupProvider.java:377) at org.apache.nifi.regi
I want to establish an ODBC connection to my Impala data warehouse in a CML project. I'm running a CML session and have configured my odbc.ini and odbcinst.ini files, but I need to install the driver. Everything I see here https://www.cloudera.com/downloads/connectors/impala/odbc/2-7-2.html describes installing it via the installation wizard.Since CML runs a linux pod, I tried downloading the .deb file for the ODBC driving and then executing `dpkg clouderaimpalaodbc_2.7.2.1011-2_amd64.deb` but it has to be as root. If I run `su` it asks for a password. I'm not sure how this password gets generated by the system. I tried my workload password and portal password but neither worked.Is there a more principled way of connecting via ODBC in CML or is there a way to run as root in CML?
In HBase, i have a column qualifier in which i have a data like below:ReportV10\x00\x00\x00\x00\x02\x02\x02When i am reading this table from spark using shc connect, i am getting junk characters in result. Below is the piece of code i am using to read a HBase table:catalog='''{"table":{"namespace":"db1","name":"tb1"},"rowkey":"key","columns":{"rowkey":{"cf":"rowkey","col":"key","type":"string"},"nf_hh0":{"cf":"nf","col":"hh0","type":"string"}}}'''df=spark.read.option("catalog",catalog).format("org.apache.spark.sql.execution.datasources.hbase").load()df.show(1,False)+------------------------------------------------+| rowkey | nf_hh0 | +---------------------------+------------------- +|26273707950926220...|ReportV10�� |+---------------------------+--------------------+Spark version: 2.3.2.3.1.0.319-3HBase version: 2.0.
Hi everybody!I am struggling trying to create a NiFi Kubernetes cluster out of cetic helm chart. After installation, I see a working zookeeper cluster (3 instances) and a 2 instances stateful set for NiFi. One instance is correctly elected as cluster coordinator, NiFi frontend shows me a 1 member cluster. The second instance's log keeps on popping messages such as:2022-07-01 11:52:23,839 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message2022-07-01 11:52:29,313 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.ProtocolException: Failed marshalling 'HEARTBEAT' protocol message2022-07-01 11:52:34,792 WARN [Clustering Tasks Thread-2] o.apache.nifi.controller.FlowController Failed to send heartbeat due to: org.apache.nifi.cluster.protocol.P
hadoop distcp -i -log /tmp/ hdfs://xxx:8020/apps/yyyy hdfs://xxx_cid/tmp/ In this case the "xxx" is the "un-secure" cluster, while "xxx_cid" in the secure cluster. We are launching the job from the Kerberos cluster, with the appropriate kinit for the user and getting the following error: java.io.IOException: Failed on local exception: java.io.IOException: Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure connections.; Host Details : local host is: "xxx/10.x.x.x"; destination host is: "xxx":8020; ... Caused by: java.io.IOException: Server asks us to fall back to SIMPLE auth, but this client is configured to only allow secure connections. I thought by launching the job from the secure cluster, that we could avoid any access issues. But it appears that the processes are kicked off from the "source" cluster. In this case, that's the insecure cluster. Idea's on getting around this?
Dear Cloudera Community,We are currently conducting warehouse testing using Apache HBase and need to load large files into HBase tables. Could you kindly suggest any tools or specifically designed for bulk loading large datasets into HBase?Thank You!
Hello,I am currently testing HBase for bulk loading purposes, and I am using the pseudo-distributed mode (single-host standalone) for my configuration. After completing all the configurations, I ran the jps command, which displayed all the necessary processes for testing, as shown below:[super@dc1-apache-hbase bin]$ jps25808 ResourceManager25585 SecondaryNameNode36961 HMaster25203 NameNode37347 Jps25925 NodeManager36805 HQuorumPeer25334 DataNode37135 HRegionServer[super@dc1-apache-hbase bin]$I did not use Zookeeper manually but instead set export HBASE_MANAGES_ZK=true. However, once I enter the HBase shell, I can list the tables but cannot create any new tables. The error displayed is as follows:hbase:001:0> listTABLE0 row(s)Took 0.7732 seconds=> []hbase:002:0>hbase:003:0> create 'table_1','cf'ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializingat org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:3215)at org.apache.hadoop.hbase.maste
Hi, experts,I need to insert data from CSV to DB. CSV file name is the same as DB table name, but table has additional primery key column, so I need to add such column in CSV. I can get max key value from DB table. Please, advise how to use this key value in flowfile. Here is my flowThanks in advance.
Hello , I am trying to setup LDAP on my Nifi Registry and I am getting the below errror : nifi-registry 2024-09-27 09:25:06,919 INFO [NiFi logging handler] org.apache.nifi.registry.StdOut Caused by: java.lang.Exception: Unable to load the login identity provider configuration file at: /opt/nifi-registry/nifi-registry-current/conf/login-identity-providers.xmlnifi-registry 2024-09-27 09:25:06,919 INFO [NiFi logging handler] org.apache.nifi.registry.StdOut at org.apache.nifi.registry.security.authentication.IdentityProviderFactory.loadLoginIdentityProvidersConfiguration(IdentityProviderFactory.java:160)nifi-registry 2024-09-27 09:25:06,919 INFO [NiFi logging handler] org.apache.nifi.registry.StdOut at org.apache.nifi.registry.security.authentication.IdentityProviderFactory.getIdentityProvider(IdentityProviderFactory.java:110)nifi-registry 2024-09-27 09:25:06,919 INFO [NiFi logging handler] org.apache.nifi.registry.StdOut at org.apache.nifi.registry.security.authentic
Hey Team,I am want to connect hive with SSL and Kerberos.Getting error with trying to connect via beeline and got the following error:root@ip-172-31-13-77:~# beeline -u "jdbc:hive2://ec2-52-66-58-15.ap-south-1.compute.amazonaws.com:10000/default;principal=hive/ec2-52-66-58-15.ap-south-1.compute.amazonaws.com@AP-SOUTH-1.COMPUTE.AMAZONAWS.COM;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=******************"SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0.15945976/jars/log4j-slf4j-impl-2.13.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0.15945976/jars/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.SLF4J: Actual binding is of type [org.apache.logging.sl
Hello,I am unable to access Hive using Beeline connection string in the edge node. The JDBC String that I am using is as follows:beeline -u "jdbc:hive2://Example.com:10000/default;principal=hive/Example.com@EXAMPLE.COM" Error:Unknown HS2 problem when communicating with Thrift server.Error:jdbc:hive2://Example.com:10000/default;principal=hive/Example.com@EXAMPLE.COM: Invalid status 21 (state=08S01,code=0)Help is required to fix this issue. Thank you.
Hi, I am trying to group webCategoryId and item with yes/no flag with some conditions inside array.1 - if webCategoryId variable is present and not empty value then only use webCategoryId, ignore item value if present inside array.2 - if webCategoryId variable is not present or present with empty value then use item if item value is present inside array.Could you please advice. Input { "correlationId": "3242a7b4-7929-43b3-9fb6-0d7e173373af", "sourceSystemId": "PCS", "messageTimestamp": "2024-05-03T00:00:00", "id": 1234, "promotionId": 2303, "offerId": 2303, "description": "Members Get Tees $15", "customerDescription": "Members Get Tees $15", "levelCode": 0, "typeCode": 3, "templateId": 4, "couponCode": null, "isCouponCodeRequired": 0, "startDatetime": "2024-06-20T00:00:00", "endDatetime": "2024-06-24T23:59:00", "cancelationDatetime": null, "comments": null, "distributionRuleCode": null, "exclusiveDi
I'm trying to connect to Impala on a new mac (M2 Chip). I followed all the steps here for unixODBC. I confirmed that my unixODBC install is working and that the Cloudera driver installed properly.When I run `odbcinst -j` I get:unixODBC 2.3.12DRIVERS............: /opt/homebrew/etc/odbcinst.iniSYSTEM DATA SOURCES: /opt/homebrew/etc/odbc.iniFILE DATA SOURCES..: /opt/homebrew/etc/ODBCDataSourcesUSER DATA SOURCES..: /Users/willhipson/.odbc.iniSQLULEN Size.......: 8SQLLEN Size........: 8SQLSETPOSIROW Size.: 8Here's my odbcinst.ini [ODBC Drivers]Cloudera ODBC Driver for Impala=Installed[Impala]Description=Cloudera ODBC Driver for ImpalaDriver=/opt/cloudera/impalaodbc/lib/universal/libclouderaimpalaodbc.dylib And here's the first few lines of my odbc.ini [ODBC][ODBC Data Sources]Impala=Cloudera ODBC Driver for Impala[Impala]Description=Cloudera Impala ODBC Driver DSNDriver=Impala I have confirmed that the driver exists in `/opt/cloudera/impalaodbc/lib/univer
Hi,I am using NiFi 1.26.0 and having a flow with combination of ListFile and FetchFile.Basically i have three files in my local directory (test_1.txt, test_2.txt,test_3.txt). I have to fetch only one file (ex:test_1.txt) for further process.Based on regex listFile list's all three files.But facing issue in fetch file. Instead of fetching only one file, it tried to fetch all three files listed by listFile processor and giving output as three files instead of one file, but content of all three files are same as content of file mentioned in fetchFile configuration (test_1.txt)In data provenance could see it is trying to fetch the files which is not mentioned in fetchFile configuration and after fetching the files it modifies the content.How can i fix this. Please help.
Just for context, our Hadoop cluster is kerberized and is backed by Active Directory that also hosts the other accounts running our .NET apps on Windows.One of our .NET apps opens a connection to Impala using the .NET OdbcConnection class. The OdbcConnection instance is supplied with an ODBC connection string that specifies the use of the Impala ODBC driver (2.6.7) and points to our Impala daemon nodes. We want to run our Impala queries using a different account from the one that is running the .NET app, so we do WindowsIdentity.RunImpersonated (WindowsIdentity.RunImpersonated Method (System.Security.Principal) | Microsoft Learn) to run the ODBC connection code as the user that we want. Here's a simple example of how the code looks: WindowsIdentity.RunImpersonated(safeAccessTokenHandle, () => { var connectionString = "Driver=Cloudera ODBC Driver for Impala;...;AuthMech=Kerberos;SSL=1;UseSystemTrustStore=1;"; OdbcCommand command = new OdbcCommand("SELECT 1"); using (OdbcConn
I recently downloaded the latest version of NiFi (nifi-2.0.0-M4) and installed it by placing the folder in /opt/nifi-2.0.0-M4. The only modifications I made were in the nifi-env.sh and nifi.properties files as follows:nifi-env.shexport JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64nifi.properties# Site to Site propertiesnifi.remote.input.host=10.37.10.199nifi.remote.input.secure=falsenifi.remote.input.socket.port=10000nifi.remote.input.http.enabled=truenifi.remote.input.http.transaction.ttl=60 secnifi.remote.contents.cache.expiration=60 secs# web properties ############################################### For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.# Be aware that changing these properties may affect how your instance can be accessed without any restriction.# We recommend configuring HTTPS instead. The administrators guide provides instructions on how to do this.nifi.web.http.host= 0.0.0.0 # Here goes the IP of my virtual mach
Hello community,I want to get the from hdfs to confluent cloud kafka is there any suggestion how to do that.
"result" : "SUCCESS","correlationID" : "X8058296","generationTimestamp" : "1354","meHostName" : "rc01;rik2jc","nccVersion" : "SPS__R1", This is my input in my nifi and i want to do changes in meHostName means i want mehostName to have 1st value like in this case rc01 and after that creating 1 more field with name devicename having second value means rik2jc I acheived the 1st part means i configured in UpdateRecord processor for meHostName and it is printing 1st value means it is running fine ,now please help me in acheiving devicename to have 2nd value of meHostName which is rik2jc . i have tried split(/meHostName, ';')[1] but its not working
My solr service is up and runing, but still all the ranger audits for atlas service are being loaded into /var/log/atlas/audit/spool/archive which ideally is done when the solr-sink is down for that service. It is causing a lot of space consumption rapidly please help!
I have created a three node NIFI cluster and the embedded zookeeper is set up and all the three nodes are communicating with each other through heartbeats but when I try to access the NIFI UI I am getting the below error:Unauthorized error="invalid_token", error_description="An error occurred while attempting to decode the Jwt: Signed JWT rejected: Another algorithm expected, or no matching key(s) found", error_uri="https://tools.ietf.org/html/rfc6750#section-3.1"How do I fix this issue?
Hi,regarding the disks of an HDFS datanode with for example 10 disks, what are good values for the read/write throughput for each JBOD disk? Are there any benchmarks for a production environment? (e.g. 200 MB/sec).Thank you.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.