Find answers, ask questions, and share your expertise
Recently active
Hey Cloudera community, I'm an avid gamer and also have some experience working with Apache NiFi for data processing tasks. Lately, I've been wondering if there's a way to leverage NiFi to enhance my gaming experience. I know it's typically used for data integration and ETL, but I've heard it's quite versatile. So, here's my question: Are there any creative ways I can use Apache NiFi to optimize my gaming PC's performance? Whether it's improving network latency, automating system maintenance, or something entirely different, I'm open to suggestions. I'd also appreciate any insights from fellow gamers who have experimented with NiFi in a gaming context. How has it worked for you? Any success stories, tips, or warnings to share? Thanks in advance for your input! Looking forward to some innovative ideas. Best regards, Charlie
Hi guys,So I have been struggling with a data conversion and I can't really figure out how to achieve what I am trying to achieve.I have a CSV File which comes into my flow as follows:COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6 MONTH0182 Tel set W27 0 2200 31-IAN-220183 Apa cai W27 0 2200 30-SEP-220185 HDM set MT8 1 2200 28-FEB-220185 Apa alo MT8 0 2200 31-OCT-220186 HDM set HG5 1 2200 30-IUN-220188 Fus alo HG5 1 2200 30-APR-22I am using afterwards an ConvertRecord to transform the CSV into an AVRO File, using the following schema:{"type": "record","name": "nifiRecord","namespace": "org.apache.nifi","fields": [{"name": "COLUMN1","type": ["string","null"]},{"name": "COLUMN2","type": ["string","null"]},{"name": "COLUMN3","type": ["string","null"]},{"name": "COLUMN4","type": ["string","null"]},{"name": "COLUMN5","type": ["string","null"]},{"name": "COLUMN6","type": ["int","null"]},{"name": "MONTH","type": ["string","null"]}]}Now, in the next step, I would like to transform the MONTH f
HIiI have created an Apache Ni-Fi data pipeline that fetches data from a MySQL table and after some data transformation loads the data into a postgreSQL table. The first processor is a GenerateTableFetch which is followed by an ExecuteSQL processor.The pipeline works perfectly with source tables containing over 14 million entries (around 2700 MB). However, with tables containing over 420 million entries (around 69000 MB), the GenerateTableFetch processor does not provide any output.I have used a partition size of 100000 rows and I am using as Column for Value Partitioning the column id which is the primary key in the source table. The same column is also used as Maximimum-value Columns. The Max Wait Time is set to zero, allowing also long SQL queries.The attached figure shows the other properties of the processor.In the ExecuteSQL processor I have configured the Max Rows Per Flow File to the same value as the partitioning size: 100000.I am running Ni-Fi 1.18.0 (java 11.0.20.1) on Linux
I'm new in hive so it can be very stupid question) In our project we have very difficult model that contains a lot of arrays and nested fields. This model describes interaction with other systems so its filling can be very different. It is something like logs. We save this data in Hadoop using external table and orc files. It is a very big struct field. Apache ORC Tools is used by us for creating orc files and making orc schema. We don't have problem with writing, but when we read data we get a lot of "null" values. I understand that reasons of it are difficult model and different filled fields. But output in beeline or Hue is unreadable:...{""id"":""mqqqnc"",""value"":[{""Ipv4Value"":null,""StringValue"":{""value"":""99""}}]},{""id"":""eee"",""value"":[{""Ipv4Value"":null,""StringValue"":{""value"":""254103""}}]},{""id"":""uli"",""value"":[{""Ipv4Value"":null,""StringValue"":{""value"":""asfsfsd""}} ...This example is a little part of our struct field but we have three null field.Is i
Hello everyone,in a cdp 7.1.7 cluster I have not found a way to implement engine spark to run hive queries on hue. I can execute hive queries with spark engine with spark-shell but if I try to execute hive queries on hue by setting set hive.execution.engine=spark I get the following error:Error while compiling statement: FAILED: Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark sessionCan anyone help me to implement hive on spark via hue?Thanks in advance
I have read about support of redis sentinel and standalone redis in Apache nifi but is there any way I can integrate clustered nifi for storing and fetching the value ?
Currently I have configured apache NiFi with Ranger as per discussed in this thread. Ranger NiFi plugin is able to pull resources from ranger and auto suggest in ranger nifi service definition UI. But I don't think the authorizations works properly. Only the /flow resource specifier has an impact. When I remove that specifier user is not able to view the screen and when I add it back the user is logging back into the Nifi UI. Rest of the resources including processors , ports etc. seems to be unclickable or accessible no matter any of the resource specifier I provide in ranger. I even tried the wild card * but still doesn't seems to work. The UI looks as below. The Ranger Authorizers file is shown below <userGroupProvider> <identifier>file-user-group-provider</identifier> <class>org.apache.nifi.authorization.FileUserGroupProvider</class> <property name="Users File">./conf/users.xml</property>
I have been trying to integrate Nifi with Apache Ranger. When I manually configure policies in Ranger for Nifi the policies are fetched by Nifi and authorization works fine. But when I try to define the service definition and test the connection its is giving the following error.The configuration in service definition is shown below. The authentication in nifi is setup by following this article.Note: Only Nifi is setup in SSL mode. Apache Ranger doesn't have SSL mode.What could be the possible reason this is happening?
I'm hoping someone might have a suggestion here. A PutDatabaseRecord processor which was working properly under 1.15 started generating java.sql.BatchUpdateException: ORA-00936: missing expression on a 1.18 cluster.I'm using the Oracle12+ database type and the incoming flowfile format is Avro - so there should be no Schema inference happening.It's strange, since that error usually indicates a structural problem with the SQL itself. So, I'm concerned that there is a defect in the 1.18 version of PutDatabaseRecord. But, maybe there is something I can change about the source data or in the properties of the processor which will workaround this issue?If anyone has seen something like this or has some suggestions I could try, I would appreciate it. Thanks.
My Production environment has existing 4 data nodes.I just added additional 4 data nodes in the cluster and would like to run the HDFS Rebalance to balance the data across the 8 data nodes. My question is, can I rebalance data but also ingesting and processing new data at the same time? Will it caused any file interrupted if do so? Thanks.
I had a flow which needs to be replicated for 100 jobs.one of my jolt transform looks like this. [{ "operation": "default", "spec": { "*": { "id": "#{customer_id_1}", "warehouse_loaddate" : "${now():format('yyyy-MM-dd HH:mm:ss', 'CET')}" } }}] The customer_id_1 is a parameter currently, which is different in all 10 different jobs. like there are many different parameters in the context like customer_id_2customer_id_3 etc..With this I need to touch my code at 100 different places...But since I know the customer ID is present in my upstream processor.. so I just want to name the parameter customer_id and get the value from upstream dynamically... Is there a way that I can send a attribute to downstream processor and use it in jolt ?Without using parameters from parameter context ? We use #{<id>} and ${<func>} to access parameters and Functions.. but how can i refer an attribute from my upstream processor ? Please help me under
I have installed Zeppelin on my CDP cluster , since by default "anonymous" id is disabled what is the user ID that I can use to login to Zeppelin UI. I tried using :admin = password1user1 = password2user2 = password3But none of them seems to work
Hello,We need to partition 5 hive tables with more than 100 million records each. Tables have multiple columns to partition with integer and string data allowing less than 1000 partitions per column. Could we combine several of these fields to partition the tables? would there be a restriction on the maximum number of combined partitions? Should they have a specific order according to the number of partitions in each table? for example, first partition by year (10 partitions) , then by country (50 partitions) and then by city name (500 partitions) ? Must the combination of partitions be less than a particular number?Best Regards,H.M
Hi,After tried to login, it is taking me back to reenter the credentials.I have tried all the passwords.Pls help....
Hi, Is there any processor to add some text/characters to each line in the flowfile in Nifi. Replace text seems to be more complicated given that the partiton value keeps changing. compute incremental stats mydb.mytable partition (date=2023-07-21);compute incremental stats mydb.mytable partition (name=abc);tocompute incremental stats mydb.mytable partition (date='2023-07-21');compute incremental stats mydb.mytable partition (name='abc'); Note: date=2023-07-21 comes as a complete string from the sys.partitions.part_name table in hive. We will need to add '' to the date.
Hello All,I am new to NiFi. I have set up NiFi with LDAP authentication and NiFi starts with no issues but I don't know how to log into NiFi as "Initial Admin Identity" user "user_admin" as shown in my setup below. What should I use as the login credentials as NiFi presently rejects user_admin/<password>?nifi.propertiesnifi.security.user.authorizer=file-providernifi.security.allow.anonymous.authentication=falsenifi.security.user.login.identity.provider=ldap-provider login-identity-providers.xml <identifier>ldap-provider</identifier> <class>org.apache.nifi.ldap.LdapProvider</class> <property name="Authentication Strategy">START_TLS</property> <property name="Manager DN">uid=test_admin,OU=users,DC=abc,DC=com</property> <property name="Manager Password">*******</proper
I am using ListFile processor to pick up input files to my flow. And it picks up all available files in the directory.Is it possible to configure it to pick only one file, let its processing to be completed and then pick next file. So basically only one file at a time to be processed by system.Or if any processor other than ListFile can be used for this purpose?
Nifi registry key was expired, I have regenerated key for nifi registry ans also nifi nodes.After setting up new key ssl error resolved but now i still can't commit to nifi registry from nifi node.Error log from nifi registry log :2023-09-15 12:18:56,526 ERROR [NiFi Registry Web Server-25] o.a.n.r.web.mapper.ThrowableMapper An unexpected error has occurred: org.apache.nifi.registry.flow.FlowPersistenceException: Git directory ./nifi01_flow is not clean or has uncommitted changes, resolve those changes first to save flow contents.. Returning Internal Server Error response.org.apache.nifi.registry.flow.FlowPersistenceException: Git directory ./nifi01_flow is not clean or has uncommitted changes, resolve those changes first to save flow contents.Note: I did not made any config change other then adding new ketstore and truststore to nifi registry and nodes.
Here is my login-identity-providers.xml <provider><identifier>ldap-provider</identifier><class>org.apache.nifi.ldap.LdapProvider</class><property name="Authentication Strategy">SIMPLE</property><property name="Manager DN">cn=admin,dc=example,dc=com</property><property name="Manager Password">secret</property><property name="TLS - Keystore"></property><property name="TLS - Keystore Password"></property><property name="TLS - Keystore Type"></property><property name="TLS - Truststore"></property><property name="TLS - Truststore Password"></property><property name="TLS - Truststore Type"></property><property name="TLS - Client Auth"></property><property name="TLS - Protocol"></property><property name="TLS - Shutdown Gracefully"></property><property name="Referral Strategy">FOLLOW</property><pr
Is it possible, or does it make sense to use AWS Load Balancers in front of a NiFi Cluster?We are running a 3 node nifi cluster using v 1.19.1 on aws and I wanted to see if it is possible, or makes sense to use an AWS Load Balancer(s) in front of the nifi cluster.Any guidance, suggestions would be tremendously appreciated.
Hi All ,I planning to upgrade NiFi 1.9.2 to 1.23.0. I read some articles about upgrading.https://community.cloudera.com/t5/Support-Questions/Nifi-Upgrade/m-p/346309If I follow the take special note above , can I directly migrate 1.9.2 to 1.23.0 ? Will there be any problem ?
Hi,I have an input json as below: [ { "orderId": "1234567890", "orderName": "Test1", "orderItems": [ { "orderItemId": "01", "orderItemName": "test1-OrderItem1" }, { "orderItemId": "02", "orderItemName": "test1-OrderItem2" } ] }, { "orderId": "12235", "orderName": "Test2", "orderItems": [ { "orderItemId": "01", "orderItemName": "test2-OrderItem1" } ] }, { "orderId": "12236", "orderName": "Test3", "orderItems": [ { "orderItemId": "01", "orderItemName": "test3-OrderItem1" } ] }] I want to convert it into text form where we want the order details and then item details for each map in the list.Here is the desired output: 1234567890 Test101 test1-OrderItem102 test1-OrderItem212235 Test201 test2-OrderItem112236 Test301 test3-OrderItem1 This is json to csv conversion, and I am using the ConvertRecord processor and below are the reader and
I'm trying to use a "GenerateTableFetch" process, but it always returns empty flow files, with no error.When I turn on trace, it runs the followingGenerateTableFetch[id=9adb6bf3-018a-1000-517b-b3f88a43e39e] Setting CLUSTER State to {}GenerateTableFetch[id=9adb6bf3-018a-1000-517b-b3f88a43e39e] Returning CLUSTER State: StandardStateMap[version=663, values={}]GenerateTableFetch[id=9adb6bf3-018a-1000-517b-b3f88a43e39e] Executing SELECT COUNT(*) FROM TESTTRANSFERGenerateTableFetch[id=9adb6bf3-018a-1000-517b-b3f88a43e39e] Returning CLUSTER State: StandardStateMap[version=663, values={}]GenerateTableFetch[id=9adb6bf3-018a-1000-517b-b3f88a43e39e] Returning CLUSTER State: StandardStateMap[version=663, values={}]So it just runs a COUNT(*) and then exits it seems?When I run the same query against the ORACLE 19c database I get a count of 500kI can't find any info that suggests Oracle isn't supported, but I can't figure out a reason it would just return nothing.
On a processor, right click -> view status history....there is a data available by name 'Records Processed' in dropdown.For one of the processor in my flow, this is not available.What can be the reason for this? Is it possible that value was so high that system lost track somewhere?
I have a nifi flow, working fine. It picks file from a source directory, processes it, and file is deleted from source directory once picked up.This all works fine first time. But later on, if I copy another file in source directory, that file is not picked up. I even stop all processors, clean any queue if not empty, and restart processors, but still file is not picked from input directory.What causes this behaviour?As a result, I have to stop-restart nifi, making it a bit cumbersome.PS: Based on some google suggestions, I tried to delete flowfile_repository, but it doesn't allow so with message 'Device or resource busy'.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.