Ask questions, get answers, or find community-sourced articles
Recently active
I already have a working connection through ODBC using Cloudera ODBC Driver for Apache Hive, where I have my DSN set and all I need is to call pyodbc.connect(f"DSN={mydsn}", autocommit=True)I'd like to use SQLAlchemy, but I'm struggling how to create a working connection url for multiple hosts.I was trying to base my idea on this guide where I found connection string jdbc:hive2://datanode1:2181,master1:2181,master2:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2However, thisfrom sqlalchemy import create_enginequery = """SELECT TOP 10 * from eb.mobile_sa"""conn_url = f'hive://{UID}@host1:2181,host2:2181,host3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2'engine = create_engine(conn_url)with engine.connect() as conn: df = pd.read_sql(query, conn)throws an error invalid literal for int() with base 10: '2181,host2:2181,host3:2181 etc. I've also considered cloudera's impyla since Pyhive seems to be currentl
Hello all, I am creating a processor group that read from kafka topic and write it to the clickhouse database. I am using stateless mechanism to ensure that when there is a problem during execution, nifi crash, or nifi restarted or clickhouse database return error, kafka offset will not be committed and process will be retry.Unfortunately clickhouse will create a new row for duplicated message. In order to avoid duplicate message, i would like to check first the database and see if i have duplicated message before processing. Have someone create similiar use case as this one?
Hello support,I am creating another execute stateless from a processor group. This processor group has one consume jms connected with ibm mq. Below is the processor group and consume jms ssl context service. The processor group running fine without execute stateless. After i push the processor group to be referenced with execute stateless processor. After i got following error:Is there a specific way to define the type of truststore file or password for execute stateless.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package com.demo.processors;import org.apache.commons.lang3.StringUtils;import org.apache.nifi.annotation.behavior.InputRequirement;import org.apache.nifi.annotation.behavior.ReadsAttribute;import org.apache.
Hello experts,I have downloaded and trying to run nifi registry 1.24 with meta data db as mysql and Git flow persistence.Getting below error and unable to start the service - log in text : 2024-02-21 16:11:13,716 INFO [main] o.a.n.registry.bootstrap.RunNiFiRegistry Runtime Java version: 11.0.142024-02-21 16:11:13,725 INFO [main] o.apache.nifi.registry.bootstrap.Command Starting Apache NiFi Registry...2024-02-21 16:11:13,725 INFO [main] o.apache.nifi.registry.bootstrap.Command Working Directory: /usr/independent_nifi/nifi-registry-1.24.02024-02-21 16:11:13,726 INFO [main] o.apache.nifi.registry.bootstrap.Command Command: java -classpath /usr/independent_ni.............................2024-02-21 16:11:13,743 INFO [main] o.apache.nifi.registry.bootstrap.Command Launched Apache NiFi Registry with Process ID 190992024-02-21 16:11:14,447 INFO [NiFi Registry Bootstrap Command Listener] o.a.n.registry.bootstrap.RunNiFiRegistry Apache NiFi Registry now running and listening for Bootst
Hi community,From Hue security browser, I have a RBAC role (admin), which was given all permission on all databases.I have this Database A which consists of table1,2,3I want to deny this admin role from dropping Database A -> Table1 and Table2.Can you show me how this can be done on sentry?Thanks!!
Hi! I'm using NiFi 2.0.0 M1, and I'm writing a flow inside a processed group. I had a problem when I wrote the flow.The flow should be run as an individual task. Every time when it is run, it will take in some data from a table on MySQL Server, use many LookupRecord Processors and then process the matched and unmatched data respectively. Finally, it turns out to have 9 branches within the flow.After processing all these, I need to trigger an ExecuteSQLRecord processor which will call some stored procedures in MySQL. Literally, only when all the above branches finish running should this processor be triggered (and it should be triggered only once in one task). To achieve this, I wanted to use Notify and Wait processor to detect whether all the branches finish running and when I should trigger the ExecuteSQLRecord processor. However, I can only set a fixed number of signals to wait for in the Wait processor, while in the real case, sometimes not all of the 9 branches will be run. (Becaus
I am trying to assign a value to a variable using single value result from a query but i keep getting syntax error . I am using HUE - Impala Editor Result of "Select distinct MonthEndSnapshotKey FROM vmge_1h_bmh_lynx_non_pu_sec.rundtcur" = 202005 with data type INT .I want to assign it to variable Testvar SQL statements : SET $(testvar=Select distinct MonthEndSnapshotKey FROM vmge_1h_bmh_lynx_non_pu_sec.rundtcur};select $(testvar}ParseException: Syntax error in line 1:undefined: SET $(testvar=Select distinct Mon... ^ Encountered: ( Expected: = CAUSED BY: Exception: Syntax error
Hello,Is there a way we can monitor long running queries in Impala on CDP-PC or a dashboard where this can be viewed and if required an alert to be triggered. Thanks Wert.
I have a job which runs a hive query inside. When it comes the time for the query Oozie throws this error: Error while compiling statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex re-running, vertexName=Map 1, vertexId=vertex_1668428709182_0049_1_00Vertex re-running, vertexName=Map 1, vertexId=vertex_1668428709182_0049_1_00Vertex re-running, vertexName=Map 1, vertexId=vertex_1668428709182_0049_1_00Vertex failed, vertexName=Map 1, vertexId=vertex_1668428709182_0049_1_00, diagnostics=[Vertex vertex_1668428709182_0049_1_00 [Map 1] killed/failed due to:OWN_TASK_FAILURE, Vertex vertex_1668428709182_0049_1_00 [Map 1] failed as task task_1668428709182_0049_1_00_000000 failed after vertex succeeded.]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0 I can not understand a lot of this error but when I run the job through terminal it ends successfully.
Hi, I have a GetHDFS processor that reads a .TXT and I need to read the content and send a email combined the content with some other default text. I tried a UpdateAttribute to capture flowfile-content and then used in PutEmail sendMessage as Hi ${content} for example, but always get a empty string.Someone can help me
Dear there, While i make the Nifi deployment to build ExecuteGroovyScript like that from integration_pipeline.models.processors.script_processors.script_processor_base import ScriptProcessorBaseclass ExecuteGroovyScriptProcessor(ScriptProcessorBase): @property def name(self) -> str: return 'org.apache.nifi.processors.groovyx.ExecuteGroovyScript' def insert_custom_properties(self, script_file: str, module_directory: str = None, **kwargs): self.set_configuration_properties({**{"Script File": script_file, "Module Directory": module_directory, &n
Hi,I have gone through multiple community support link, where it is mainly saying to start cluster, say, 50MB/s And 1000 events/sec sustained throughput for average Flow is:3 nodes each with:CPU: 8+ cores (16 is preferred)Memory: 8+ GBDisk: 6 disks, each 1TB disks (could be spinning or SSD)Referred link: https://community.cloudera.com/t5/Community-Articles/NiFi-Sizing-Guide-Deployment-Best-Practices/ta-p/246781My Nifi (version 1.23.2) cluster maintaining below hardware configuration, where Disk is a concern in my environment. Only one disk and all the repository is using the same default Nifi configuration. What will be expected throughput in these case ?3 nodes each with:CPU: 8+ cores (16 is preferred)Memory: 8+ GBDisk: 1 disk of 500GB (could be spinning or SSD) 5 nodes each with:CPU: 8+ cores (16 is preferred)Memory: 8+ GBDisk: 1 disk of 500GB (could be spinning or SSD) 7 nodes each with:CPU: 8+ cores (16 is preferred)Memory: 8+ GBDisk: 1 disk of 500GB (could be
When I try 'Activate' Environment to create virtual datawarehouse of CDWThe error occurred below image.This is Authentication pageThis is environmentThis is role of cm_admin accoutThe cm_admin account has all permission on ActiveDirectory.And all ports related LDAP of Activedirectory server. Please let me know what shoul I have to do.
Hello sir,I am using invokedHttp to post request. But it did not get response from invokeHttp. I get request file . But I want to get the response invokeHttp and write to remote server. Here is the diagramhere is invokeHttp properties.Request has been posted to server successfully.How to get response from invokeHttp and write in remote server?Please help me
Dears team, I have been using PySpark 3.4.2 with the following syntax: sql_query = "INSERT OVERWRITE TABLE table_1 PARTITION(partition_date = {YYYYMMDD})SELECT table_1.a , table_1.b , table_2.cFROM table_2 change_capture_viewFULL OUTER JOIN ( SELECT * FROM table_1 WHERE WHERE partition_date = {YYYYMMDD_D_1}) current_view ON change_capture_view.a <=> current_view.aWHERE change_capture_view.a IS NULL" and use spark.sql(sql_query ). And encountered the error: File "/usr/hdp/3.1.0.0-78/spark3/python/lib/pyspark.zip/pyspark/sql/session.py", line 1440, in sqlFile "/usr/hdp/3.1.0.0-78/spark3/python/lib/py4j-0.10.9.7-src.zip/py4j/java_gateway.py", line 1322, in __call__File "/usr/hdp/3.1.0.0-78/spark3/python/lib/pyspark.zip/pyspark/errors/exceptions/captured.py", line 175, in decopyspark.errors.exceptions.captured.AnalysisException: Cannot overwrite a path that is also being read from. In essence, I am trying to retrieve data from
I am trying run query via HUE api of cloudera data warehouse on azure. However I couldn't get token for authentication. I tried enter ID and password started with csso_ and machine user.Tried enter token made from knox as well. How could I get token for access Hue API??
Nifi version is 1.23.2 and kafka version 2.6.I use ConsumeKafka_1_0 1.23.2 to read messages from kafka.DetectDuplicate 1.23.2 processor is available, which deduplicates stream files on the same stream.However, stream read the same recording twice and DetectDuplicate processor could not deduplicate the same message.I understand that it reads the same message because the offset id value is same in two message.What could be the reason why the ConsumeKafka_1_0 processor reads the same message and DetectDuplicate processor cannot detect same message?
Hi guys,I am new in Nifi and I have some problem with authentication-I am using HandleHttpRequest to coolect some data from other system. I need to do some basic authorization. I know that it something like http.header.authentication but I have a few question about this:1.How can get it to this authorization header? My first processor is HandleHTTPRequest so it is enough that my second processor will be EvaluateJsonPath and I do something like this: $.http.headers.Authorization or I need do something else?2. I heard that this authorization data are in Base64. How can I decode it and compere with my user and password when for example my user is user1 and password is password1I will be grateful for tips because I don't know how to ho about it
Hello,I have nested JSON objects coming in a flowfile, looking like this (example): { "a" : 1, "b" : {"asd" : 156, "bed" : "lalala"}, "c" : "abba", "d" : {"add" : 872, "bla" : "bebebe"} } I'd like to put double quotes around every nested json object and also escape any double quote inside of that nested json. The result would look like this: { "a" : 1, "b" : "{\"asd\" : 156, \"bed\" : \"lalala\"}", "c" : "abba", "d" : "{\"add\" : 872, \"bla\" : \"bebebe\"}" } I tried doing a replacetext with a regex like this: (?<=:.*\{[^}]*)"However this is utilizing a negative lookbehind with varying length and it seems this isn't supported in java/nifi. What would be the best approach here? Thanks!
I have an existing iceberg table and I'm trying to evolve schema by adding a new column:`alter table my_db.my_table add column insert_time timestamp`When I execute the above statement, I get a 'New column(s) have been added to the table.' but the column doesn't appear. I tried running a REFRESH, an INVALIDATE METADATA, and I tried restarting Impala but it had no effect. I tried the same operation on a test table and it worked. I'm using Impala as a query engine and Azure for storage. Impala is running in a Data Hub Cluster.
Hello,I'm new to using oozie and I've been trying to figure out how to use the output of an action as the input of the next action in Oozie. I'm actually coming from using traditional ETLs, where the output of one Step can be used as arguments in the next Step. My question is whether the following points are possible with Oozie:Use the output of one action as the input of the next actionLet a subsequent action be executed "n" times according to the output of the first action. Like sub jobs or something.Actually, in order to know if this is possible, we are trying to run a very basic dump example where we read and insert with two hive actions, one for read a table and another one to write. Something like the following example created with Hue Oozie Editor.<workflow-app name="Workflow" xmlns="uri:oozie:workflow:0.5"> <start to="hive-04f4"/> <kill name="Kill"> <message>Error al realizar la acción. Mensaje de error [${wf:errorMessage(wf:l
We have a client tool that we use for query log ingestion. For CDH, we were able to provide our audit logs. Is there something comparable to /var/log/impalad/audit/impala_audit_event_log_1.0-* in CDW?I tried looking in PREFIX + “app=impala-executor-log” based on this article: https://docs.cloudera.com/cdw-runtime/cloud/impala-troubleshooting/topics/impala-logs-s3.html, but did not see what I was looking for.
Hi,Whenever I am trying to create any external table with any path, the error comes up FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Illegal character in path at index 17: hdfs://namenode1/ apps/sysDSPPRS) Don't know from where it is taking the space between "namenode1/" and "apps".DDL: hive> CREATE EXTERNAL TABLE mydb.ext_apps (a string, b string) LOCATION 'hdfs://namenode1/apps/sysDSPPRS/sysuser/ext_apps'; There is no path in HDFS as "hdfs://namenode1/ apps", but "hdfs://namenode1/apps" does exist [sysuser@server dev]$ hadoop fs -ls /Found 5 itemsdrwxrwxrwx - hdfs supergroup 0 2022-03-04 09:15 /appsdrwx--x--x - hbase hbase 0 2022-02-02 17:33 /hbasedrwxr-xr-x - hdfs supergroup 0 2020-09-18 12:57 /systemdrwxrwxrwt - hdfs supergroup 0 2022-03-11 07:29 /tmpdrwxr-xr-x - hdfs supergroup 0 2022-03-08 08:05 /userWe are using CDH version
Hi Team ,We are trying to add timestamp to Kafka message to get more details of message travel time from producer to landing . I wanted to check if we can add any broker properties from Cloudera manager . RegardsBharad
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.