Find answers, ask questions, and share your expertise
Recently active
Hello Experts,I have a nifi kafka consumer (ConsumeKafka_2_6) where the kafka message body (value/flow file content) and message key (kafka.key in flow file attributes) both are avro serialized as per the Confluent kafka way of serializing.When we use "ConvertRecord + AvroReader CS + ConfluentSchemaRegistry CS" to convert message body (value/flow file content) , it works fine as it is deserilising the magic byte and schema id to the correct value. But we are trying below to deserilise kafka.key as well the same as value.Bringing the FF attribute kafka key to content (using ReplaceText processor with ${kafka.key}) and use "onvert Record + Avro Reader + ConfluentSchemaRegistry" to deserialize, in this case nifi is resulting in a wrong schema id - 3567 instead of the correct schema id 3545.Is it happening because when Nifi reads kafka.key (originally byte array) and pushes to downstream in FF as FF attribute and which is string?Is there any other way
I have a simple file having say 1000 lines each of which contains say username and useraddress. I need to insert it into db. How to insert it in order. I am able to use PutFile and PutDatabaseRecord both for the insertion purpose. But they insert randomly in any order. I wanted it to be inserted in the same order it is present in the file.How to do that.
have HDP 2.6.5, in which I'm able to run Ambari UI. Now, when I tried to install Pip by using PuTTy. I am getting this error.These are the steps I tried in order; now after this, I have to install MapReduce as well. *yum-config-manager --save --setopt=HDP-SOLR-2.6-100.skip_if_unavailable=true*yum install https://repo.ius.io/ius-release-e17.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm*yum install python-pip I'm in 3rd Step. This is error I'm getting.
I am using Nifi 1.14.1, Kafka 2.13-2.7.1 and the processor ConsumeKafkaRecord_2_6 to process messages from a topic where the key and the value where both serialized using avro - schemas for the key and value are stored in the confluent schema registry. But the processor fails to parse the message because there is not a way - that I can see - to specify that both key and value are avro serialized with schemas stored in the confluent schema registry. The convention for naming the schema is usually [topic name]-value and [topic name]-key. I can read the messages just fine using kcat, formerly kafkacat using: kcat -b broker1:9092,broker2:9092,broker3:9092 -t mytopic -s avro -r http://schema-registry_url.com -p 0Is there a way to read such messages or am I supposed to add my own processor to nifi? Here's an error trace:[Timer-Driven Process Thread-9] o.a.n.p.k.pubsub.ConsumeKafkaRecord_2_6 ConsumeKafkaRecord_2_6[id=f9933326-017e-1000-60be-e5077975f031] Failed to parse message fconfigur
I just register cloudera on public cloud 5 days trial. I want to assess dataflow if it's suit on my usecase. When i follow the "Hello world" project there is deploy button that i can't click which needs to have admin account. Stated on https://community.cloudera.com/t5/Support-Questions/CDP-trial-version-admin-rights/m-p/348347#M235350 i need to contact support (create case) to give me admin access, however i can't access it due to access restriction, how come???
When I attempt to' join' tables or even use 'group by', I get the following error: Hortonworks Hive DSN -- [Hortonworks][Hardy] (35) Error from server: error code: '1' error message: 'Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask'.(HY000,35) Yet, I am able to do a simple 'select-from-where' query with no problem. I am using the IDE Rapid SQL. Any idea of what is going on?
Hello, I have a simple use case. I have an incoming file having say user name and user address in each line. User name is from char 1 to char 5 and user address is from char 6 to char 15. How to use ExtractText processor for it. I tried using Search Value as ^(.{5})(.{10}) and in replacement value as $1,$2Issue I am having is that for address it is capturing all the chars from 6th char to last and not necessarily upto 15th char. What should I modify?Just for experimentation I tried doing ^(.{5})(.{10})(.{1}) and $1,$2,$3 and this is able to capture properly from 6th char to 15th char. Please help.
Hello everyone, I'm running a 11-nodes NiFi 1.15.3 cluster. One of the process groups is versioned on NiFi Registry and for some reason the local flowfile does not reflect the versioned configuration, so now the process group is stuck: I cannot do anything on it, not even moving it on the canvas because it always return an error: Node XXXXXXXXX is unable to fulfill this request due to: [15, xxxxx-xxxxx-xxxxxx] is not the most up-to-date revision. This component appears to have been modified The local configuration shows no changes, and nothing I tried so far worked (deleting the flow file, restarting the cluster node, etc). so I just want to delete the process group and deploy it again from the registry, but the web interface won't let me, throwing the same error. Is there a way to force the deletion the process group? Thanks
Hello everyone,recently on Ranger, we noticed that when enabling users in a security zone, they are unable to see tables in a database through Impala. When connecting via JDBC through the command line or directly from HUE, they can view the tables and their respective data, but if all of this is done through Impala, they have no visibility at all.We have 4 clusters, and all of them have the same type of configuration and permissions, but we encounter the issue in 3 of these clusters. All configurations in Ranger have been checked and appear to be correct in all environments.At this point, I have no idea where to begin the analysis of the problem.Also, there are no access issues reported from Ranger to tables in the security zone, and there are no error logs or access denied logs.I realize that without providing an error log, it's difficult to conduct an analysis, but perhaps some of you have suggestions on where to start investigating the problem.Have any of you ever encountered a simi
Whenever I enter Ambari I get the next error in a box with a green "okay" button.500 status code received on GET method for API: /api/v1/clusters/datalakev02/requests?to=end&page_size=10&fields=Requests/end_time,Requests/id,Requests/progress_percent,Requests/request_context,Requests/request_status,Requests/start_time,Requests/cluster_name,Requests/user_name&minimal_responseThen if I want to go to any configs of the services or restart something, I get a similar but shorter message:500 status code received on GET method for API: /api/v1/clusters/datalakev02/kerberos_descriptors/COMPOSITE?evaluate_when=trueI checked the ambari-server logs and I have only this message: 2024-08-28 03:05:10,868 WARN [ambari-hearbeat-monitor] HeartbeatMonitor:133 - Exception receivedjava.lang.RuntimeException: Failed to construct cluster topology while replaying request: org.apache.ambari.server.topology.InvalidTopologyException: NAMENODE HA requires at least 2 hosts running NAMENODE bu
Hello, I want to copy record from one table to another table that has the same structure in Oracle 12c+.One not-null column in source has white space. When trying to insert record to the target table, I got error "cannot insert NULL", so I added UpdateRecord processor to replace Null with white space, but still have the same error.It works if I replace Null with any other character like "_". Is there any way to keep white space when inserting to the target table?Below is my Flowfile and the UpdateRecord properties. Thank you
Hi,I am trying to configure Ranger using ambari. I copied the postgress jar to ambari server. but I am getting error when I start the range admin. I have ranger running on separate VM. Internal Exception: java.sql.SQLException: Connections could not be acquired from the underlying database! Error Code: 0 at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:467) at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:400) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:373) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:595) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:382) at org.springframework.transaction.intercepto
Atlas is unable to start since it is not being able to connect to Hbase region server
I'm new to NiFi, and I've been struggling with wrapping square brackets around a specific JSON object. Below is my JSON input, my desired JSON output and my attempted JoltTransformJSON shift operation spec. I'm really close, but I'm getting a duplicate of the "financialSystemFields" object.Please advise, and many thanks in advance.JSON Input:[{"type" : "APPROPRIATION","subType" : "ADMINISTRATIVE", "duration" : "1","retiredDate" : null,"expiredDate" : "2023-09-30 00:00:00.0","closedDate" : "2028-09-30 00:00:00.0","association" : null,"financialSystemFields" : { "FundId" : "01234NFWJ", "fundedProgram" : null, "projectDescription" : "NO FUN WITH JOLT" }}]Current JSON Output:[{"type": "APPROPRIATION","subType": "ADMINISTRATIVE","duration": "1","retiredDate": null,"expiredDate": "2023-09-30 00:00:00.0","closedDate": "2028-09-30 00:00:00.0","association": null,"financialSystemFields": [{ "FundId"
I am unable to use date related queries in getmongo , following simple query is working mongo but its not filtering anything in the getmongo and selecting the complete collection in nifi{"createdOn" : {"$gt":{"$date" : "2024-08-19T11:39:46.308Z"}}}
so i am working on NIFI and we are converting and sorting our .asn file into json file so right now for this i am using some processors this all processors i am using , now i want to change name of existing variable into input file means i am having 2 resultcode in my input file and output is coming like this resultcode = {2001,2001} now i want the second value to come under resultcodemscc what processor i can use here ? my input after jolt looks like "sessionStopTime" : "09/07/2024 06:47:19","resultCode" : [ "2001", "2001" ],"recordOpeningTime" : "09/07/2024 06:44:22" this is all live data i cant hardcode the value , pls suggest something ASAP !
In nifi I am using PutDatabaseRecord. When i am inserting data to the db then why is 0 being omitted like if it is 0123 then in db only 123 is inserting in the table. Note: If I use PutSql then it is not omitting leading 0. How to configure PutDatabaseRecord to not omit leading zeros.
Hello everybody, basically there was an electric problem and the cluster was suddently shutdown.After restarting everything Hbase results to have all the Region Servers online (but with 0 regions each) and the Region Server with the same names are shown in Dead Region Servers.Everytime i restart hbase, new rows are add in the Dead Region Server .This already happened to me long time ago and the problem was related to zookeeper, but i can't find the old post.Do you know what i can do? ThanksP.S. my cluster is kerberized, hbase version 2.0
Hi,I have a requirement where I need to update the Application-Name of a Yarn Application Master (AM) that I use to execute a task. The same Yarn AM is reused to run multiple tasks and and I need to update the Application-Name of the Yarn AM based on the task I run currently. Example.: If I am running a sort task, then ' yarn application -list' command should show: sh-4.4$ yarn application -list23/06/23 00:34:24 INFO client.RMProxy: Connecting to ResourceManager at abc.def.hig.com/xx.xx.xx.xx:8032Total number of applications (application-types: [], states: [SUBMITTED, ACCEPTED, RUNNING] and tags: []):2Application-Id Application-Name Application-Type User Queue State Final-State Progress Tracking-URLapplication_1686581388019_0752 sort_job1 YARN dsadm default RUNNING UNDEFINED 0% N/A And later, If I am running a delete task using the same AM then ' yarn appli
Hi All,I am trying to write my spark dataframe to hive table using HWC - Hive Warehouse connector. My spark application is in pySpark and i have 5 concurrent spark application running at same time and trying to write to same hive table probably at same time. I am getting following issue Error- caused by: java.lang.RuntimeException: Error while compiling statement: FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.exec.MoveTask. java.io.FileNotFoundException: File hdfs://tablespace/managed/hive/my_db_name.db/hive_table_name/.hive-staging_hive_2024-08-05_15-55-26_488_5678420092852048777-45678Does HWC won't allow concurrent write to same hive table? or its limitation with hive table?
We have a streaming requirement where the data is received continuously and we store them in HDFS by merging 10,000 records to avoid multiple IO operations.We generate the batchID using the below calculation,${now():format('yyyyMMdd')}${now():format("HH"):toNumber():multiply(60):plus(${now():format('mm'):toNumber()}):divide(15)}So this batch will change every 15 minutes and in Nifi sometimes there are 4 flows or 5 flows based on the number of records received during 15-minute time intervals. For example, if we receive 50,000 records in 15 minutes then this flow will be executed 5 times but if there are 40,000 records in 15 minutes then the entire NiFi flow will be executed 4 times.Once the batch execution is completed fully (after 4 flows or 5 flows as per the incoming data volume as explained in the above example) we want this batchID to be stored in the next table for further processing.So, we are working on some logic/condition in NiFi to invoke the "RouteOnAttribute" to check the b
Dear! Once I installed and started PQS on Ambari, the service was successfully installed and started, but a second later I encountered PQS automatically stopped. I checked var/log/phoenix-hase-query-server.log found that, ... Unrecoverable service error : shutting down. Anybody used to encounter such this issue?Regard!
IHi All,I am getting one issue while updating my existing entity using PUT calls.I have downloaded json by using GET and i just trying to update my entity (i have tried updating description also tried not updating anything and PUT as it is ) using PUT operation and its failing with same reason - "errorCode":"ATLAS-400-00-023","errorMessage":"Attribute null not found for type hive_table" could you please advise how did you update the entity using PUT command ? curl --negotiate -u : -X PUT -H "Content-Type: application/json" https://myURL:portNumber/api/atlas/v2/entity/guid/<myGuid>-d @downloaded_entity.json i have referred this post , however its not showing how to perform PUT operation. Solved: Re: PARTIAL UPDATE APACHE ATLAS ENTITY GUI - Cloudera Community - 297845 so my question is - Does atals REST PAI allows updating entity ? my usecase is i want to update an hive table enti
Hello Community,Back again with different version same issue ...added the proxy settings, properly, this is reaching out the Runtime repos but not the CM repo...don't know how to set this to make the installer to work, this is exhausting...where is this taking the info from??? Checking https://[userpass]@archive.cloudera.com/p/cm7/7.11.3.0/repodata/repomd.xmlthis URL is not existing!and then is creating cloudera.repo file emptywhy is so dificult to make this installer to work? and yes, there is connectivity froem the serrvers to CLOUDERA:anyone knows how to install this CM 7.11.3 and CDP 7.1.9?
Hi team I want a jolt spec where I want the output to be completely flattened json. this is my input json and assuming where ever there is nested array it should be mapped with other nested array as well. this is my input json - {"unitOfMeasure": "unit:piece","linkedDemandSeries": [{"loadFactor": 3.5,"materialNumberCustomer": "MNR-7307-AU340474.002","materialNumberSupplier": "MNR-8101-ID146955.001","customerLocation": "{{CATENAX-CUSTOMER-BPNS}}","demandCategory": {"demandCategoryCode": "0001"}},{"loadFactor": 4.0,"materialNumberCustomer": "MNR-7307-AU340474.002","materialNumberSupplier": "MNR-8101-ID146955.001","customerLocation": "{{CATENAX-CUSTOMER-BPNS}}","demandCategory": {"demandCategoryCode": "0002"}}],"linkedCapacityGroups": ["be4d8470-2de6-43d2-b5f8-2e5d3eebf3fd","ab4d8470-2de6-43d2-b5f8-2e5d3eebf3fd"],"unitOfMeasureIsOmitted": false,"capacityGroupIsInactive": true,"demandVolatilityParameters": {"rollingHorizonAlertThresholds": [{"sequenceNumber": 1,"absoluteNegativeDeviat
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.