Find answers, ask questions, and share your expertise
Recently active
I am new to Jolt, I am trying to transform JSON to a particular format using nifi, where i am moving some objects into another object, I think i am closeThis is my JSON{ "relatedParty": [ { "id": "B2BSmallandMedium" } ], "serviceOrderItem": [ { "id": "e26205f4-e144-4ded-9e64-82ede0b26f4", "action": "add", "service": { "name": "cust", "state": "active", "supportingService": [ { "id": "e26205f4-e144-4ded-9e64-82ede0b26e99", "href": "serviceInventory/v4/service" }, { "id": "7313c885-a075-4188-a6bc-c3fbfb4c7422", "href": "activationAndConfiguration/v4/service" } ] } } ]}I am new to Jolt, I am trying to transform JSON to a particular format, where i am moving some objects into another object, I think i am close.This is my JSON{ "relatedParty": [ { "id": "B2BSmallandMedium" } ], "serviceOrderItem": [ { "id": "e26205f4-e144-4ded-9e64-82ede0b26f4", "acti
I am following https://medium.com/egen/how-to-configure-oauth2-authentication-for-apache-kafka-cluster-using-okta-8c60d4a85b43 for setting up OAuth2.0But when I try to produce data I get Error while fetching metadata with correlation id 43 : {myTopic=TOPIC_AUTHORIZATION_FAILED}.Can anyone please help me outI tried adding invalid details in my sasl-oauth2-consumerapp-config.properties file to check if it is picking the right file , it seems like right file is picked.
Hi, I'm trying to get this JOLT working, but in some cases, in the output is printing null values. The qty of itens inside RUBRICS array is dynamic. What am I doing wrong ? Payload [ { "ENTITY_DOCUMENT": "11", "ENTITY_ID": "", "ENTITY_TYPE": "TEST_CARD", "CLOSED": true, "CALCULATION_DATE": "2023-11-01", "RUBRICS": [ { "name": "provisao_TEST_card", "classification": "", "code": "", "amount": 110.08, "type": "", "business_unit": "TEST", "aggregation_key": "" } ] }, { "ENTITY_DOCUMENT": "12", "ENTITY_ID": "", "ENTITY_TYPE": "TEST_CARD", "CLOSED": true, "CALCULATION_DATE": "2023-11-01", "RUBRICS": [ { "name": "provisao_TEST_card", "classification": "", "code": "", "amount": 120.08, "type": "", "business_unit": "TEST", "aggregation_key": "" } ] }, { "ENTITY_DOCUMENT": "13", "ENTITY_ID": "", "ENTITY_TYPE": "TES
Dear community gods, I am using CDH6.3.1 and I am exporting data from KUDU and it has an error as follows. I need your help now:[root@hadoop001 impalad]# sudo -u impala impala-shell -i hadoop001 -d test --query_option="SPOOL_QUERY_RESULTS=TRUE" -l -u user01--auth_creds_ok_in_clear -q "select * from test.test_table01 where length(file_data_json)/1024/1024 > 20 limit 1"Starting Impala Shell using LDAP-based authenticationLDAP password for user01:Opened TCP connection to hadoop001:21000Connected to hadoop001:21000Server version: impalad version 3.2.0-cdh6.3.2 RELEASE (build 1bb9836227301b839a32c6bc230e35439d5984ac)SPOOL_QUERY_RESULTS is not supported for the impalad being connected to, ignoring.Query: use `test`Query: use `test`Query: select * from test.test_table01 where length(file_data_json)/1024/1024 > 20 limit 1Query submitted at: 2023-11-03 21:59:04 (Coordinator: http://hadoop001:25000)Query progress can be monitored at: http://hadoop001:25000/query_plan?query_id=ed46b03a61e6b
This question has been asked before (here) but never answered so I'm hopeful that today is my lucky day and someone knows the answer. Because unfortunately, the documentation does not cover the topic.In the UpdateAttribute there is an option to Store State of an attribute by setting the value to "Store state locally". But to do that I first need to set the "Stateful Variables Initial Value", but the documentation doesn't say how to do that, and everything I've tried fails. The documentation provides an example for referencing an existing attribute variable, theCount, but there is no mention of how to initialize this attribute variable. I've attempted setting the initial value using:theCount=1{"theCount":1}${theCount=1}1${setStateValue('theCount')} <- grasping at straws with this oneNone of these work. When I look at the value of the attribute theCount it always just shows: "Empty string set".I'm including a scree
Hi,I have managed to download the latest Nifi 2.0.0 M1 and I'm trying to run it on my windows 10 machine. Doing some preliminary testing I ran into the following issues:1- The system requirement indicates that (https://nifi.apache.org/project-documentation.html ) indicates that at minimum I need Java 17, but when I try to start nifi using run.bat I get the following error: Error: LinkageError occurred while loading main class org.apache.nifi.bootstrap.RunNiFi java.lang.UnsupportedClassVersionError: org/apache/nifi/bootstrap/RunNiFi has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 It turns out it needs Java 21. Not sure if the documentation has not been updated or if Im missing something.2- After upgrading to Java 21, Im able to start nifi using default configuration, the log file doesn't show any error and default username and password ar
Hi team,We faced an issue while working on Json transformation using Flink after consuming Kafka upcoming data stream. The script developed using Scala. -> The services details are:1. Server Kafka-console-consumer version: 2.5.0.7.1.7.1000-1412. Server Flink version: 14.14.0-csa1.6.2.03. Server Scala version: 12.13.10 -> The error is: java.lang.NoClassDefFoundError: org/apache/flink/api/common/serialization/DeserializationSchema -> The Scala scripts (running using SBT):1. SBT file (build.sbt) : scalaVersion := "2.12.18"name := "kafka-flink"organization := "com.me"version := "1.0"//libraryDependencies += "org.apache.kafka" % "kafka-clients" % "2.5.0.7.1.7.1000-141"libraryDependencies += "org.apache.flink" %% "flink-scala" % "1.14.0-csa1.6.2.0" % "provided"libraryDependencies += "org.apache.flink" %% "flink-streaming-scala" % "1.14.0-csa1.6.2.0" % "provided"libraryDependencies += "org.apache.flink" %% "flink-connector-kafka" % "1.14.0-csa1.6.2.0" %
i built Apache Impala by myself, and i want use JDBC / ODBC for itcan i use Cloudera Impala JDBC / ODBC in my project for free? or does it requires any license?
Hello,I want to integrate data into DynamoDB from Parquet files using NiFi (which I run in a Docker container). I fetch my files from AWS S3 using the ListS3 and FetchS3Object processors and then, as I understand it, convert the files to JSON using ConvertRecord and send the data using PutDynamoDB.I've tried configuring the AvroSchemaRegistry, ParquetReader and JsonRecordSetWriter controllers, but I'm obviously doing it wrong... I've tried using an UpdateAttribute processor too but nothing works. I don't really understand if I have to add the schema and where to add it. Thanks to anyone who can help me!
Just trying to use a simple Groovy Script for setting TTL on redis keys with a given pattern. @Grab(group='org.springframework.data', module='spring-data-redis', version='2.6.2')import org.springframework.data.redis.connection.RedisConnectionimport org.springframework.data.redis.core.ScanOptionsdef pool = CTL.redis.getConnection()pool.withCloseable {conn-> def keyPattern = 'raw:extra:*' def scanOptions = ScanOptions.scanOptions().match(keyPattern).build() def cursor = conn.keyCommands().scan(scanOptions) while(cursor.hasNext()) { def key = cursor.next() // Check if the key has a TTL if(conn.keyCommands().pTtl(key) == -1) { // Set a 15 days TTL for the key conn.keyCommands().expire(key, 15 * 24 * 60 * 60) } }} However this is giving this specific error. I tried using KeyScanOptions, without grabbing the spring-data-redis and a builder. Still getting the same error. ExecuteGroovyScript[id=6f743677-05b0-1622-bb0b-cbb0e51
I converted non-ha hadoop cluster to ha hadoop cluster using below articlehttps://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.0/fault-tolerance/content/deploying_namenode_ha_cluster.html After conversion, getting "HiveServer2Error: ImpalaRuntimeException: Error making 'add_partitions' RPC to Hive Metastore" exception while trying to upload file What can cause this problem ?
Hi , I have a publish kafka processor where iam having a self loop and flowfile expiration time for that loop is 1 hours , if some file is there for more then 1 hour it will get removed. i want to print log message (e.g. dropping the flow file) after every flow file is removed from queue after getting expired. This is the flow -
Hi there,We've been using Nifi for awhile in our projects, mostly using Kafka and AMQP Client processors for receiving data; but recently a request came up for UDP, specifically DTLS (Datagram transport Layer Security).Looking at the existing UDP Client Processors, it appears that DTLS is not supported; or at least it's not clear for us how to do it. Is that correct?Are there any alternatives then? Maybe creating a custom ListenDTLS processor based on the existing ListenUDP? Could that work?Best regards
Hi there!I'm facing a connection refused problem in my apache nifi instance trying to reach an Elasticsearch instance using a queryElasticsearchHttp processor.The elasticsearch instance is reachable using CURL or in a web browser:But when I try to execute the processor, it fails due to a connection refused errorHere is the configuration I have in the processor: The server is not secured, but anyway I also tried to access with a valid user/password, facing the same error.Here my log: 2023-11-24 09:03:14 2023-11-24 08:03:14,682 ERROR [Timer-Driven Process Thread-4] o.a.n.p.e.QueryElasticsearchHttp QueryElasticsearchHttp[id=018b15d7-f6fe-11ed-b48b-3fd75e47c7d4] Failed to read from Elasticsearch due to Failed to connect to localhost/127.0.0.1:9200, this may indicate an error in configuration (hosts, username/password, etc.). Routing to retry2023-11-24 09:03:14 java.net.ConnectException: Failed to connect to localhost/127.0.0.1:92002023-11-24 09:03:14 at okhttp3.internal
I deployed NiFi and Kafka cluster of cdp public cloud on the azure.And I am trying to publish data to kafka(kafka-poc) user nifi(datahub-poc).I am facing "Topic XXX not present in metadata after 0000ms" when I set 'Use transaction=false' And I am facing "Timeout expired after 0000milliseconds while awaiting InitProducerId" after "Invaid transition attempted from state INITIALIZING to state ABORTING_TRANSACTION" error when i set 'Use transaction=true' Anything should I try to solve this problems?
I have hdp cluster 2.6.5 (kerberized) on public cloud, and i need to access hdfs from outside (public access) through hdfs cli (not webhdfs)As the external hadoop-client host can't be enrolled through ambari i just downloaded hadoop 2.7.3 package and configured core-site.xml and hdfs-site.xml as bellowcore-silte.xml <configuration> <property> <name>fs.defaultFS</name> <value>hdfs://datalake-cstest9</value> </property> <property> <name>hadoop.security.authentication</name> <value>kerberos</value> </property> </configuration> hdfs-site.xml <configuration> <property> <name>dfs.nameservices</name> <value>datalake-cstest9</value> </property> <property> <name>dfs.ha.namenodes.datalake-cstest9</name> <value>nn1,nn2</value> </prope
i want to send value of kafka.topic as header i.e (the topic from where i consumed message) to publish topic (another topic) by using publish processor.But iam getting below error in publish processor-
Hi everybody. When I use https://github.com/cloudera/hue/blob/master/tools/ops/hue_sync_ldap_groups_cron.sh to sync ldap groups with hue on my first cluster it's works fine but when I use on a second cluster I have one error "LD_LIBRARY_PATH can't be found, if you are using ORACLE for your Hue databasethen it must be set, if not, you can ignoreexport LD_LIBRARY_PATH=/path/to/instantclient". Cause this error, we can't retreive de ldap_config used later in the scripts. Does someone know how to fix this issue. Thanks 😉
Hello everyone,my team using TEZ, in particular Hive, has noticed that during an insert with a very simple select a single parquet file of 1.5 gb per partition is generated in the output table.To try to remedy the problem, a number of settings were used at the session level but had no effect.Below are the sets used at the session level:SET hive.execution.engine=tez;SET hive.exec.dynamic.partition=true;SET hive.exec.dynamic.partition.mode=nonstrict;SET hive.optimise.sort.dynamic.partition.threshold=0;--SET tez.grouping.max-size=268435456;--SET hive.exec.reducers.bytes.per.reducer=536870912;--SET tez.grouping.split-count=18;SET hive.vectorized.execution.reduce.enabled = true;SET hive.vectorized.execution.reduce.groupby.enabled = true;--SET hive.tez.auto.reducer.parallelism=false;--SET mapred.reduce.tasks=12;--SET hive.tez.partition.size=104857600;--SET hive.tez.partition.num=10;SET hive.parquet.output.block.size=104857600;I would like to ask if there is a way to always have parquet type
CREATE TABLE IF NOT EXISTS emp ( eid int, name String,salary int). . . . . . . . . . . . . . . . . . . . . . .> COMMENT 'Emp Details'. . . . . . . . . . . . . . . . . . . . . . .> ROW FORMAT DELIMITED. . . . . . . . . . . . . . . . . . . . . . .> FIELDS TERMINATED BY '\t'. . . . . . . . . . . . . . . . . . . . . . .> LINES TERMINATED BY '\n'. . . . . . . . . . . . . . . . . . . . . . .> STORED AS TEXTFILE;INFO : Compiling command(queryId=hive_20190905115646_595a00a3-9a4c-4082-a81f-c426fb3e903a): CREATE TABLE IF NOT EXISTS emp ( eid int, name String,salary int)COMMENT 'Emp Details'ROW FORMAT DELIMITEDFIELDS TERMINATED BY '\t'LINES TERMINATED BY '\n'STORED AS TEXTFILEINFO : Semantic Analysis Completed (retrial = false)INFO : Returning Hive schema: Schema(fieldSchemas:null, properties:null)INFO : Completed compiling command(queryId=hive_20190905115646_595a00a3-9a4c-4082-a81f-c426fb3e903a); Time taken: 0.094 secondsINFO : Executing command(queryId=hive_20190905115646_595a00a
If a have 2 original block and 1 Parity block in HDFS according to the EC policy, then If I lose 2 of this 3 blocks, How HDFS is going to Recover the missing data. Block A xor Block B = Parity BlockIf I lose any one of the block, I can see HDFS will be able to create the missing block. But if I lose any 2 block, I don't see how we will recover the missing 2 block out of 1 block. If help me understand or redirect me to some helpful resources.
Hi All, I am upgrading cloudera manager from version 6.1.1 to 7.7.1 and when starting the cloudera-scm-server service I get the following error2023-11-04 15:53:32,946 ERROR main:com.cloudera.enterprise.dbutil.SqlFileRunner: Exception while executing ddl scripts.com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'DISPLAY_NAME'What should I do to handle the error?please your advice for me. Thanks
I receive a text/csv file with many lines through an InvokeHttp Processor. My requirement is that I don't want the first 7 lines. What should I do to remove the first 7 lines and keep the remaining the same text/csv format.
Using Nifi 1.23.2 I'm not able to resolve the YamlSlurper class in a ExecuteScript processor (Groovy 3.0.17) nor in the ExecuteGroovyScript processor (Groovy 3.0.18). With a minimal script body likeimport groovy.yaml.YamlSlurperreturnI get the following after clicking Verify Properties:Perform ValidationComponent is invalid: 'GroovyScript' is invalid because org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script53405bee.groovy: 1: unable to resolve class groovy.yaml.YamlSlurper @ line 1, column 392. che.nifi.logging.ComponentLog;import gro ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class groovy.yaml.YamlSlurper @ line 1, column 392. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:262) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1424) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:262) at org.codehaus.groovy.control.CompilationU
Hi, I have CDP private Cloud Base version 7.4.4 running in EC2 instance. I have hive, hive onTez and Tez services running. When I try to execute query in hive I get below issue Tez session hasn't been created yet. Opening sessionERROR : Failed to execute tez graph. org.apache.tez.dag.api.TezUncheckedException: Invalid configuration of tez jars, tez.lib.uris is not defined in the configuration Below is the complete error log INFO : Compiling command(queryId=hive_20220915080651_6fe3fec1-a2ab-462b-ad3c-e7f4d53c2b46): insert into customer values('sample1','1')INFO : Semantic Analysis Completed (retrial = false)INFO : Created Hive schema: Schema(fieldSchemas:[FieldSchema(name:col1, type:string, comment:null), FieldSchema(name:col2, type:string, comment:null)], properties:null)INFO : Completed compiling command(queryId=hive_20220915080651_6fe3fec1-a2ab-462b-ad3c-e7f4d53c2b46); Time taken: 0.121 secondsI
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.