Find answers, ask questions, and share your expertise
Recently active
Hi, Im new to Apache Nifi and i'm looking on how to filter the CSV data using specific column. I'm able to convert to JOSN without filtering, but SplitText and RouteonAttribute processors are not helping to filter the data. Below is my input CSV. Input:number,name,resourceState,location,manufacturer111897,lok,INSTALLED,HYD,ABC115677,redd,RETIRED,BLR,ABC1108448,eswar,PROP_INITIAL,CLT,ABC1116740,wqwq,INITIAL,AA,ABC Filtering should be based on resourceState column to consider INSTALLED and RETIRED data. So, converted JSON should have only 2 rows like below. Expected JSON Output:[{"number": "111897","name": "lok","resourceState": "INSTALLED","location": "HYD","manufacturer": "ABC"},{"number": "115677","name": "redd","resourceState": "RETIRED","location": "BLR","manufacturer": "ABC"}] Please help me on the CSV filtering part. Thanks in Advance.
i'm planning to simulate install Cloudera Manager in 1 server, but the MYSQL where cloudera metadatas resides is installed in a different server? how can I run the scm_database.sh if the mysql is in another different/separate server?
I have a set of tables (20 tables) which fetches the last loaded date and count of the tables. INSERT OVERWRITE TABLE dbo.table PARTITION (last_load_date )select 'table' as tablename,current_date,count(*) as count,last_load_date from table1 where last_load_date in (select max(last_load_date) from table1)group by last_load_dateunionselect 'table' as tablename,current_date,count(*) as count,last_load_date from table2 where last_load_date in (select max(last_load_date) from table2)group by last_load_date...Union of 20 TABLES and configured the script like below and ran the script with command sh table.sh Table.shhive --hiveconf tez.queue.name=Last_date --hiveconf hive.session.id=data_xxx -f /mypath/union_query.sql I could see the error: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3664) at java.lang.String.<init>(String.java:207) at java.lang.StringB
I'm totally new to NiFi and learning as I go, but am against a hard deadline and need urgent assistance. I was tasked to create a data interface between two learning systems to send course completion data.I'm creating a flow to send course completion data from one system to another and have a JSON formatted file (to send as HTTP body to send as a CURL post?)This is the sample JSON data that I've created so far:{"user_id":10042,"username":"de","course_id":"C00230","completed_on":"12-02-2020","SCORE":100}The suggested HTTPS Curl request format is provided below.curl -v -X POST -d "j_username=admin&j_password=admin&userID=MORRW001&crsID=C00565&dateCompleted=2020-11-16&testScore=100&courseType=a" https://lms.dev.test.net/jw/web/json/data/How do I configure the InvokeHTTP processor to send it correctly? Do I need to reformat the JSON data so it's in the correct format for the curl format shown above? Remember I'm just a NiFi novice, so details, including screens
Hi, Generate the following error in the postgres database installed with the ambari. Can you please help? Postgres cannot be started. Ambari-server cannot be started. /var/log/postgresql/postgresql-10-main.log 2020-12-16 16:39:01.601 +03 [1688] LOG: worker process: logical replication launcher (PID 1821) exited with exit code 12020-12-16 16:39:01.602 +03 [1814] LOG: shutting down2020-12-16 16:39:05.512 +03 [1688] LOG: database system is shut down2020-12-16 16:43:03.421 +03 [1772] LOG: listening on IPv4 address "0.0.0.0", port 54322020-12-16 16:43:03.454 +03 [1772] LOG: listening on IPv6 address "::", port 54322020-12-16 16:43:03.764 +03 [1772] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"2020-12-16 16:43:05.405 +03 [1809] LOG: database system was shut down at 2020-12-16 16:39:05 +032020-12-16 16:43:06.942 +03 [1772] LOG: database system is ready to accept connections2020-12-16 16:43:07.547 +03 [1845] [unknown]@[unknown] LOG: incomplete startup
Added 6 new DN nodes for scaling but HBASE is not assigning any regions on new DN'sHave errors like this on HBASE master - AppDispatcher,\xEB\xFDE\x08\xEB\xDD\x11\xE9\xA4I\x0AX\x0A\xF4\x8Ar,1574112884653.8808c0e1917bf0b4acea2d83d9548463. state=FAILED_CLOSE, ts=Wed Dec 16 16:53:03 UTC 2020 (3008s ago), server=cdh-dn-28.prod.mcs.az-eastus2.mob.nuance.com,60020,1608136647199
I have inherited a problem. 48 regions in hbase:meta in transition. Table has had data removed - most likely manually in an attempt to fix RIT issues. These RITs are probably a result of a network outage mid-operation. Table is currently ENABLED and cannot be DISABLED (this has already been attempted by previous techie, which resulted in LOCKS/Procedures for DISABLE and DELETE as well as RITs). Table is no longer required so can be deleted. HDFS reported it as being only 6k so I removed the table directories and zapped the znodes via ZK shell. This fixed the locks/procedures messages but CManager still reports 48 regions in transition and, as a result of this, balancing is not working. What I need is a way to remove the rows from 'hbase:meta' as this is the only place where this table is still referenced. Sample output: alfa:rfilenameext column=table:state, timestamp=1604493139455, value=\x08\x00alfa:rfilenameext,,1557760164826.35925292c25
Hello Team, We have 5 node Impala cluster (1 co-ordinator and 4 executors) we are running Impala 3.2.0. Each Impala node is of size 32 GB and 4 cores. Now we are facing an issue sometimes 2-3 Impala executors out of 5 are over utilised (80 - 90 %) memory usage and other are not, for example if executor 1 and 3 have memory usage of more than 80% and some new query issued it fails saying could allocate space(512MB) on executor 1 even tough there is more than enough memory on the other executors (2,4 and 5) whose memory utilisation is under 20%. Following is the error which I receive Memory limit exceeded: Failed to allocate row batch EXCHANGE_NODE (id=148) could not allocate 16.00 KB without exceeding limit. Error occurred on backend impala-node-executor-1:22000 Memory left in process limit: 19.72 GB Query(2c4bc52a309929f9:2fa5f79d00000000): Reservation=998.62 MB ReservationLimit=21.60 GB OtherMemory=104.12 MB Total=1.08 GB Peak=1.08 GB Unclaimed reservations: Reservation
What is the stable version of CDH6.X ,Not CDH6.3.3.We have cluster with 5.16.2 and planning to upgrade to CDH 6 ,but not CDH 6.3.3. Can someone suggest me which is the stable version of CDH 6 except CDH6.3.3?
"SecondShot" Cloudera Promotion not working for me, please assist!!
Hi Team, We are using HDP-3.x & HDF-3.x in our environment. Is it possible to do in-place upgrade from HDP-3.x to CDP Private Cloud Base ? Also, how to upgrade HDF-3.x to CDP ? Link to respective documentations would be really helpful. Please suggest ways to do upgrade. Thanks,Bhushan
I am looking to explore join properties in hive.I would like to know if the setting I change in my login/session ,will affect other users too.This is the property I am going to work: set hive.auto.convert.join=true;
Hi, can you please tell me how to add the Flink Service to Cloudera. I can add the Parcel but it's not Distributing and shows service not available.Can you please help me on this.Thanks
Hi there. I would like to concat all the values of a repetitive key and put all of them as the value of one unique key with the same name.The input would be like: { "main": "id;Date;Time;Trigger_time_open;Trigger_time_close;Door;Door_Cycle;Motor_current;Motor_voltage;DLS;DCS;Inclinometer;Temperature" }, { "main": "00000;2020/7/18;04:53:37.211;04:53:37.524;04:53:51.847;01;36688;12.062867;0.000000;-1;-1;12.078014;26.303200" }, { "main": "00001;;04:53:37.212;;;;;12.064088;0.000000;-1;-1;;" } An the output something like: {"main":"id;Date;Time;Trigger_time_open;Trigger_time_close;Door;Door_Cycle;Motor_current;Motor_voltage;DLS;DCS;Inclinometer;Temperature00000;2020/7/18;04:53:37.211;04:53:37.524;04:53:51.847;01;36688;12.062867;0.000000;-1;-1;12.078014;26.30320000001;;04:53:37.212;;;;;12.064088;0.000000;-1;-1;;"} I have been trying with join and concat, but I'm completely new to Jolt transformations, and it's been a pain to find the way.&nb
Hello all, I'd like to use the updateRecord processor to create some fields in my JSON. But I'd like to use some conditions to do that. In the recordpath documentation, I can see that there is a "filter" capability, which works like this: /field[filter]/path, but as far as I can see it's not possible to have multiple conditions in this filter. I'd like to do something like: if (field1 == A or field1 == B) {field2 = C} else if (field1 == D and field1 != E) {field2 = G} The example is silly but this is to give you the idea. By the way, except using a script, I don't know how to do that, except may be extracting the fields, put it as attribute and play with expression language but this would mean working with single-record flows and I don't want to do that. Any idea? Thanks for your suggestions Stéphane
how to get credentials for accessing :-https://archive.cloudera.com/p/HDP/centos7/3.x/updates/3.1.5.0 ??Note: i am new user and i need credentials to access.
Good afternoon I am trying to make improvements to the way we make our Nifi flows by implementing Record processing. Historically we:split text > get timestamps using regex > merge on 'corellation_id' (attribute from timestamp: format- yyyy-MM-dd-HH) > extract sourcetype using regex (flow splits at this point for each sourcetype) > merge again on 'correlation_id' > out to HDFS/Splunk etc flow structured like this:Old Split/Merge Flow(each spine is a different sourcetype) I recently watched this series of videoshttps://www.youtube.com/channel/UCcNsK56MZRXzPbRfe8sODWwI was particularly interested in the first one where Record Processing is used in place of split/merge/regex etc. As a result I have started to re-design the flow above, the logs come into us in CEF format from a syslogListener (TCP). My progress so far in processors: GenerateFlowfile - using some copied data from original flow.SplitText - to split text/plain content i
Like this we are getting some times HDFS canery good and some times HDFS Canary BadHDFS Canary Good2 Still ConcerningNov 27 12:15:53 PM HDFS Canary BadNov 27 12:15:08 PM DataNode Health ConcerningNov 27 11:58:47 AM DataNode Health BadNov 27 11:58:12 AM DataNode Health ConcerningNov 27 10:07:15 AM DataNode Health BadNov 27 10:07:00 AM DataNode Health ConcerningNov 27 9:29:35 AM DataNode Health BadNov 27 9:29:20 AM DataNode Health ConcerningNov 27 8:45:31 AM DataNode Health BadNov 27 8:45:06 AM DataNode Health ConcerningNov 26 10:03 PM HDFS Canary Good2 Still BadNov 26 10:02:23 PM DataNode Health BadNov 26 10:02:18 PM HDFS Canary BadNov 26 10:01:42 PM HDFS Canary Good2 Still ConcerningNov 26 8:01:53 PM HDFS Canary BadNov 26 8:01:03 PM HDFS Canary Good2 Still ConcerningNov 26 6:16:18 PM HDFS Canary BadNov 26 6:15:38 PM DataNode Health ConcerningNov 26 4:45:01 PM DataNode Health Bad We are finding this logs in service Monitor &nbs
Dear All,Currently I am using below SQL query in Execute SQL processor (SQL select query) to join 3 different tables that exist within my PostgreSQL database. SELECT T1.*,T2.*,T3.* FROM amsterdam.amd_block_info T1 LEFT JOIN amsterdam.amd_ap_info T2 ON T2.ap_track_id = T1.track_idLEFT JOIN amsterdam.amd_track_info T3 ON T2.ap_track_id = T3.track_id; But I am getting below error response. ExecuteSQL[id=3c9f01f3-0176-1000-0000-000032d6da19] Unable to execute SQL select query SELECT T1.*,T2.*,T3.* FROM amsterdam.amd_block_info T1 LEFT JOIN amsterdam.amd_ap_info T2 ON T2.ap_track_id = T1.track_idLEFT JOIN amsterdam.amd_track_info T3 ON T2.ap_track_id = T3.track_id; due to org.apache.avro.AvroRuntimeException: Duplicate field track_id in record any.data.amd_block_info: track_id type:UNION pos:11 and track_id type:UNION pos:3.. No FlowFile to route to failure: org.apache.nifi.processor.exception.ProcessException: org.apache.avro.AvroRuntime
Greetings, I work for a large organization that wants to purchase a NIFI system,but before the purchase is made we need to know whether the system is Fault tolerant, in the sense that if a Node / Cluster crashes while consuming / processing / putting the data, it is possible to fully recover the data that was lost, automatically or manually.If the answer is no, is it possible to set NIFI so it won't send Acks to the system from which it consumes the data from, until the moment the data completes the whole flow process and is uploaded to its destination, or at least until the data is uploaded properly to NIFI?thank you!
I'm trying to learn more about s3guard and was attempting to follow along with some of the CLI examples in the CDP documentation. Any command I try results in a warning:WARN impl.MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-s3a-file-system.properties,hadoop-metrics2.propertiesfollowed by an error:java.lang.IllegalStateException: Authentication with IDBroker failed. Please ensure you have a Kerberos token by using kinit. When I try running kinit I see:Client 'cloudbreak@[FQDN]' not found in Kerberos database while getting initial credentialsWhere "FQDN" corresponds to the VM I am ssh into. I've tried a couple machines in both my Data Hub and Data Lake clusters. Does anyone have insight on how to properly interact with my environment's s3guard setup?
Until recently we had no issues with the HUE - Kerberos Ticket Renewer - now this service is stopping/starting and failing all the time. Does anyone have any helpful links on how to troubleshoot this service? I don't have much experience with this product in terms of troubleshooting - we are running Cloudera Express 5.12.0 Any suggestions or ideas would be greatly appreciated.
Hello Team, I am facing issue in my cloudera cluster and HDFS used space is growing and "/hbase/oldWALs" is occupied more than 50%. I can confirm that, HBase replication is disabled and TTL is set to 1 Min.hbase master logcleaner ttl = 1 Minhbase replication = false HBase logs i can see below warn's,WARN org apache hadoop hbase master cleaner CleanerChore: A file cleanerhostname 60000.oldLogCleaner is stopped, won't delete any more files in /nameservice1/hbase/oldWALs And checked list of peers in hbase,hbase(main):001:0> list_peersPEER_ID CLUSTER_KEY STATE TABLE_CFS0 row(s) in 0.2360 seconds I dont see anything, Please help me with your comments. Thanks & Regards,Vinod
I want to copy only csv files from on directory into another, I use the command:hadoop distcp /a/b/*.csv /e/f/ The issue here is, if there's multiple csv files under /a/b/, this command would work, it will copy all csv files into the directory /e/f/, however, if there's only one csv file, it will be copied into /e/f where f is a file not a directory, is there a way to resolve this? Thanks in advance!
I am using ConvertJSONtoSQL to convert simple JSON to a SQL statement for inserting rows in DB2. I am using ConvertJSONtoSQL and PutSQL to write to DB2, but it is omitting the unmatched columns. How can I add unmatched columns to the SQL? Is there a way to add the matching names in the JSON prior to running ConvertJSONtoSQL? I tried using AttributestoJSON but it didn't work. Can someone please help me?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.