Find answers, ask questions, and share your expertise
Recently active
Hello,Could you assist me in retrieving the single branchName value from priceRuleAttributes list based on id, When i am doing without id match its working fine and giving me single branchName value for each index but with id match its combining all values at 1st index.Input { "Data": { "ID": "09878666", "DATE": "2022-01-01", "ARRAY_ONE": [ { "NAME": "test_1", "priceRuleAttributes": [ { "type": "CFA", "id": "PR_BRANCH_NAME", "values": [ "MEMBERS" ] }, { "type": "CFA", "id": "PR_PRICE_RULE_PROMO", "valueBoolean": true }, { "type": "CFA", "id": "PR_TARGET_SEGMENT", "values": [ "1" ] } ] }, { "NAME": "test_2", "priceRuleAttributes": [ { "type": "CFA", "id": "PR_BRANCH_NAME",
Hi Team, I have been trying to generate a scenario like three separate modules to join through Fork Enrichment with Join Enrichment process.For example: There are three processor groups A , B and CMy existing code designed like join the A and B modules with Fork Enrichment with Join Enrichment process by adding strategy SQL, and getting the expected result.Now, latest requirement to join the Module C into SQL query with existing flow( SELECT a. id, b.name, c. city FROM A a JOIN B b ON a.id = b.id JOIN C c ON c.id = a.id)Is it possible to implement one original and two enrichment flows with Fork Enrichment with Join Enrichment, or any alternative approachPlease advice.
Hi everyone!I have json from kafka: [ {"before" : {"old_key1" : old_value1,"old_key2" : old_value2,"old_key3" : old_value3,"old_key4" : old_value4},"after" : {"new_key1" : new_value1,"new_key2" : new_value2,"new_key3" : new_value3,"new_key4" : new_value4},"table" : "table_name","op" : "u", -- operation ['u-update', 'c-insert', 'd-delete']"tm" : 1720539441000000000 - timestamp of changes} ]I need execute on database sql like:update table_nameset new_key1=new_value1, new_key2=new_value2, new_key3=new_value3, new_key4=new_value4where old_key1=old_value1 and old_key2=old_value2 and old_key3=old_value3 and old_key4=old_value4; What's the best way to update rows in a database with before and after values by NiFi. I can`t use a groovy script because our team know sql only and if I produce it on groovy, I must support this alone. I have tried create sql by jolt, but all values without quotes and I can`t test a type. I think a have two ways: 1) insert all data t
Hi Teams,I got this warning on CDP-DS cluster ECS Instance : "Couldn't parse an alert list from Infrastructure Prometheus ,This happens when the Prometheus is not available, the credentials are wrong or another error is returned."All pod status is running, how to troubleshoot this issue
I need to know if there are any coming updates to using the full functionality(update, delete or create table) of Iceberg from impala on CDP Private Cloud 7.1.9.
Hi,Can Presto and Trino be installed and configured in Cloudera CDP?if yes, please provide details.
Hi,Anyone knows if there is compatibility issue for using python exntension with the latest python version 3.12. To me the 3.12 doesnt seem to work well with the python extension and I keep getting the following error :AttributeError: 'FileFinder' object has no attribute 'find_module'2024-05-16 22:12:52,884 ERROR python.ExtensionManager Failed to load Python extensions from module file <Unknown Module File>. This module will be ignored.Traceback (most recent call last):File "F:\NIFI-PORD-ENV-2.0.0-M2\python\framework\ExtensionManager.py", line 186, in __discover_extensions_from_pathsmodule = finder.find_module(name)The error seems to go away when using 3.11.*
Hi all,I developed my Spark application using Spark 3.4, and it runs on a different platform. Now, I want to run it on another platform that uses Spark 2.4. When I submit the job using the command belowspark-submit --class Main --master yarn --deploy-mode client --num-executors 6 --executor-memory 10G --driver-memory 20G --executor-cores 4 --driver-cores 4 --conf spark.yarn.submit.waitAppCompletion=true --conf spark.executor.extraJavaOptions="-XX:+UseG1GC -XX:MaxGCPauseMillis=20" --conf spark.driver.extraJavaOptions="-XX:+UseG1GC -XX:MaxGCPauseMillis=20" --jars /home/cdsw/mysql-connector-java-5.1.49.jar /home/cdsw/MyApplication.jaran error appears as shown:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/connector/catalog/TableProvider at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.j
我正在尝试使用 Sqoop 将数据从 PostgreSQL 提取到 HDFS,但一直收到错误2024-07-02 13:26:20,913 INFO mapreduce.JobSubmitter:拆分数:1 2024-07-02 13:26:21,183 INFO mapreduce.JobSubmitter:提交作业令牌:job_1719844718570_0005 2024-07-02 13:26:21,183 INFO mapreduce.JobSubmitter:使用令牌执行:[] 2024-07-02 13:26:21,336 INFO conf.Configuration:未找到 resource-types.xml 2024-07-02 13:26:21,337 INFO resource.ResourceUtils:无法找到“resource-types.xml”。2024-07-02 13:26:21,382 INFO impl.YarnClientImpl:已提交的应用程序 application_1719844718570_0005 2024-07-02 13:26:21,410 INFO mapreduce.Job:跟踪作业的 URL:http://master:8088/proxy/application_1719844718570_0005/2024-07-02 13:26:21,411 INFO mapreduce.Job:正在运行的作业:job_1719844718570_0005 2024-07-02 13:26:25,455 INFO mapreduce.Job:作业 job_1719844718570_0005 正在运行uber 模式:false 2024-07-02 13:26:25,456 INFO mapreduce.Job:map 0%reduce 0%2024-07-02 13:26:25,480 INFO mapreduce.Job:作业 job_1719844718570_0005 失败,状态为 FAILED,原因是:应用程序 application_1719844718570_0005 由于 AM 而失败 2 次,appattempt_1719844718570_0005_000002 的容器退出,退出代码为:1
After installing CDP 7.1.9 on AWS ec2 machines and RDS Postgres as backend database, below databases are created, where scm is the Cloudera Manager database: List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges-------------------------+-------------------------+----------+-------------+-------------+----------------------- amon | amon | UTF8 | en_US.UTF-8 | en_US.UTF-8 | classic-clusters | classic-clusters | UTF8 | en_US.UTF-8 | en_US.UTF-8 | cluster-proxy | cluster-proxy | UTF8 | en_US.UTF-8 | en_US.UTF-8 | das | das | UTF8 | en_US.UTF-8 | en_US.UTF-8 | db-alerts | db-alerts | UTF8 | en_US.UTF-8 | en_US.UTF-8 | db-clusteraccessmanager | db-clusteraccessmanager | UTF8 | en_US.UTF-8 | en_US.UTF-8 | db-dex
Hi For example, the hive component of cluster CDH often has internal pause. How to tune it? CDH version : CDH 6.3.2
== sudo tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log2024-07-08 15:10:06,345 WARN scm-web-117:com.cloudera.server.web.cmf.EventsController: (7 skipped) Exception querying eventscom.cloudera.cmon.MgmtServiceLocatorException: There is no configured event storeat com.cloudera.cmon.MgmtServiceLocator.getEventStoreQueryProxy(MgmtServiceLocator.java:314)at com.cloudera.server.web.cmf.events.EventDao.findEvents(EventDao.java:398)at com.cloudera.server.web.cmf.EventsController.query(EventsController.java:167)at com.cloudera.server.web.cmf.EventsController$$FastClassBySpringCGLIB$$690db1aa.invoke(<generated>)at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvo
Hi, I'm trying to query a Hive database on NiFi, but I get the following error, both Hive and NiFi are hosted on the same Docker container.I downloaded and put 'nifi-hive-nar-1.25.0.nar' and 'nifi-hive-services-api-nar-1.25.0.nar' files in the lib folder to add the processor as It was not built in for my installation.I'm trying the following configuration :This is the part of the schema where I'm encountering this issue:Maybe the issue is with the connection URI ? Regardless any help to steer me to the solution would be nice, thanks.
How we can get the content of file from Extract Email Attachments process ? if we see there are Many process coming after ExtractEmailAttachments process and in the end the put file process create file but the content of file is the value of variables for process which before the putfile processConsumeIMAP -> ExtractEmailHeaders -> ExtractEmailAttachments -> UpdateAttribute -> ExecuteSQL -> ConvertAvroToJSON -> EvaluateJsonPath -> put file
hiveserver2 web UI page opens but cannot see any details like no of active users and all .I am using cdp 7.1.3 in which kerberos and ranger both are enable..how to resolve this ?
Below is the error in bulletin board: Unable to write flowfile content to content repository container default due to archive file size constraints; waiting for archive cleanup. Total number of filescurrently archived = 1My flows are simple and this is just test environment, so not much flow files as well may be some 10-20 only. My content_repository is mounted on a disk. it is just 8MB occupied. Disk has some 100 GB storage. below are properties of content repository: # Content Repositorynifi.content.repository.implementation=org.apache.nifi.controller.repository.FileSystemRepositorynifi.content.claim.max.appendable.size=50 KBnifi.content.repository.directory.default=./content_repositorynifi.content.repository.archive.max.retention.period=7 daysnifi.content.repository.archive.max.usage.percentage=50%nifi.content.repository.archive.enabled=truenifi.content.repository.always.sync=falsenifi.content.viewer.url=../nifi-content-viewer/ I am co
Hi .. I have nifi running with ldap-user-group-provider integrated with AD. However, there are some usernames with mixed case sAMAccountName, lets say `sAMAccountName=Michael`.Logging into Nifi as `Michael` works (permission already given to an AD group which this user is a member of), but when logging into NiFi as `michael` or any username that does not match with the exact case, while the login is successful, i'm getting insufficient permission error.have tried to set group membership enforce case sensitivity to false, but seems like did not work, any steps I might have missed?and extract from authorizers.xml:<property name="Page Size">300</property><property name="Group Membership - Enforce Case Sensitivity">false</property><property name="Sync Interval">10 mins</property><property name="User Search Base">DC=company,DC=org</property><property name="User Search Scope">SUBTREE</property><property name="User Identity A
I want to do error handling of publish kafka processor in case of kafka goes down in apache nifi by retry mechanism. Retry mechanism needs to be implemented in separate flow(remove load from main flow).Nifi version = 1.18.0So, in case of failure of publishKafka processor should pass flow file in the failure relationship. Which is working properly in case of low count of incoming flow files.Example- Initial image generated few flow files for failure caseFinal image after some time Flow files successfully directed to failure relationship-As the number of incoming flow files increases the flow files are not able to routed to the failure relationship by publishKafka processor.(which is the real life scenario, if kafka goes down then publishKafka processor will apply back pressure to incoming flow files.)Here is my publishKafka processor configsI tried using inbuilt retry mechanism of nifi processorBut still the issue is not resolved, publish kafka processor not forwarding flow fi
Hi sir,I am using ListSFTP 2.0.0-M1+FetchSFTP processor and move file another location. I have two issues1. Every time it make a folder and inside the folder keep the file. Here is image: 2. I need to move file using filename like filename+uniqueid.xmlIf my file name is test.xml , I will rename file name like test++uniqueid.xml.I have used below path for move destination directiory/myfolder/${filename}Here is the image of FetchSFTP :What is wrong of my configuration?Please help me..
Hi,Getting below error while calling Slack channel from Nifi. Used putSlack Processor."o.apache.nifi.processors.slack.PutSlack : Failed to open connectionjavax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target "I have added slack cert in to my truststore.I am trying to get it tested in local (haven't deployed in to environment server). Added the channel name and webhookURL (which generated under "companyName.slack.com") Is there anything i need to add it in local truststore to work?.Please help@MattWho @SAMSAL @cotopaul
Example : I have data in http://20.30.06.08/files/test/and from the API's have a many csv data like : Name lastmodified size test-20240625.csv 2024-06-26 08:14 3.9Ktest-20240626.csv 2024-06-27 08:14 2.9Ktest-20240627.csv 2024-06-28 08:14 1.9Khow to get all data csv from folder test, with apache nifi (invokedHTTP processor)
I upgraded from nifi-2.0.0-M1 to nifi-2.0.0-M3 on a new Server.On my old Server the QueryDatabaseTable Job works fine, maximum value would be increased on every Job-Runtime as expected.On the new Server maximum value is just increasing by 1. If my initial.maxvalue.hist_num is set to 114887000 i can see in State hist_num-value: 114887001And every job-runtime it starts from 114887001. I tried so much different settings in QueryDatabaseTable but cant get it done, to work.Maybe someone has an idea, how i can fix this. Would be very nice. Eventually logs where i can see error messages or something like that?Thanks
Hello,Context :- Cluster of 3- NiFi 1.23.2 - Registry 0.7.0 on external serverAfter the upgrade from 1.13.2 to 1.23.2 I have a strange reaction from the cluster of 3. I have sometime a node that disconnect with the only error that NiFi can't delete a processor "because it's destination of another component". The thing is this processor don't mean to be delete. My guess it's because I have a diff between local change between node in the same cluster.For example if I voluntary create a process to create some local change, when I check on a node I have 1 local change but on another can be 501 local change. This mostly delete then add the same processor.If I try to revert the local change to the last version of bucket, I always have a node that disconnect. So I shutdown it server side and can't start it up again because the error of desynchronisation in local flow. Even if I copy the flow.xml.gz and flow.json.gz from a healtier node, same error.The only way I have to make it up a
Hi there,Maybe you guys can shed a light on an issue we’ve been having since we went live with one of our flows using alot of processors running on the primary node. We are using a 2 node cluster where we run a couple of getsqs (time driven, 1min) and executesql (cron scheduling, spread out during the day both on primary node. We do this so only one task is ran resulting in just on trigger flow file. Other wise we get 2 sqs events for the same event and 2 executesqls queries.What we have been seeing is that the jvm heap utilization on the primary node is above 70%, this increased gradually the past few days from 25%, so didn’t peak straight to 70%. The secondary node on the other hand is on a stable below 10%. So quite clear that there is a correlation between the processors running only on primary and the heap used.Our questions are:1. When a primary node processor triggers, will the flow file be processed by the following processors in the flow only on the primary node? Or can t
I have running hive locally using this docker compose image. However when trying to acecss admin role by docker exec -it hiveserver2 beeline -u 'jdbc:hive2://hiveserver2:10000/' -n hive and doing set role admin; I am getting this error ERROR : DDLTask failed, DDL Operation: class org.apache.hadoop.hive.ql.ddl.privilege.role.set.SetRoleOperationorg.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException: kaif doesn't belong to role adminversion: '3.9'services:postgres:image: postgresrestart: unless-stoppedcontainer_name: postgreshostname: postgresenvironment:POSTGRES_DB: 'metastore_db' POSTGRES_USER: 'hive' POSTGRES_PASSWORD: 'password' ports:- '5432:5432' volumes:- hive-db:/var/lib/postgresqlnetworks:- hivemetastore:image: apache/hive:4.0.0depends_on:- postgresrestart: unless-stoppedcontainer_name: metastorehostname: metastoreenvironment:DB_DRIVER: postgresSERVICE_NAME: 'metastore' SERVICE_OPTS: '-Xmx1G -Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driv
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.