Find answers, ask questions, and share your expertise
Recently active
/* * 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
we make database connect to apache hive and it's 'ok , but , the following issues when try to browse tables when we try to create dataset 2024-02-06 09:58:58,682:DEBUG:pyhive.hive:TExecuteStatementReq(sessionHandle=TSessionHandle(sessionId=THandleIdentifier(guid=b'\x9d\xfc\x17\xd3acJ\x81\x87\xf2<\x92mk\x92C', secret=b'\x1b\x8f\x9cX_NIP\x96\xe55\xce\x16\x0e\xf1:')), statement='SHOW VIEWS IN hrdb', confOverlay=None, runAsync=False, queryTimeout=0)12024-02-06 09:58:58,688:DEBUG:pyhive.hive:TExecuteStatementResp(status=TStatus(statusCode=3, infoMessages=["*org.apache.hive.service.cli.HiveSQLException:Error while compiling statement: FAILED: ParseException line 1:5 cannot recognize input near 'SHOW' 'VIEWS' 'IN' in ddl statement:28:27", 'org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:374', 'org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:136', 'org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOp
We have a dataframe with 5 columns with nearly 1.5 Billion records.We are need to write that a single line (single records) as json.We are facing two issuesdf.write.format('json') is writing all as single line or single record but there is second line (empty line is coming) we need to avoid itdf.write.format('json').save('somedir_in_HDFS') is giving errorWe want the save the file as single file so that the downstream application will read itHere is the sample code. from pyspark.sql import SparkSessionimport pyspark.sql.functions as ffrom pyspark.sql.types import *schema = StructType([StructField("author", StringType(), False),StructField("title", StringType(), False),StructField("pages", IntegerType(), False),StructField("email", StringType(), False)])# likewise we have 1.5 billion recordsdata = [["author1", "title1", 1, "author1@gmail.com"],["author2", "title2", 2, "author2@gmail.com"],["author3", "title3", 3, "author3@gmail.com"],["author4", "title4", 4, "author4@gmail.com"]]&nb
Hello.We are running Cloudera CDP 7.1.7 and Cloudera Manager 7.4.4 but when we access Hue UI we can only browse Jobs :Do we have to follow links given in the article ?https://docs.cloudera.com/cdp-private-cloud-base/7.1.8/hue-introduction/topics/hue-about-query-processor.htmlIs it for CDP 7.1.8 and higher ?Because when I look for adding a new service to our cluster, I can add DAS :but Query Processor is not listed :After installing and enabling Query Processor, will we be able to Query information or Timeline like in this article for CDW ?https://docs.cloudera.com/cdw-runtime/1.5.1/using-hue/topics/hue-view-query-information.htmlhttps://docs.cloudera.com/cdw-runtime/1.5.1/using-hue/topics/hue-view-query-timeline.htmlThanks for your help.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.