Find answers, ask questions, and share your expertise
Recently active
Hi guys, i am trying some hive partitions but i am getting the following errors. kindly help figure out the problem. 0: jdbc:hive2://svdt5hadoopms02.bigdatadev.sa> ALTER TABLE customer_transaction_extract DROP IF EXISTS PARTITION (date='date=2019-11-13') PURGE;Error: Error while compiling statement: FAILED: ParseException line 1:67 cannot recognize input near 'date' '=' ''date=2019-11-13'' in drop partition statement (state=42000,code=40000)0: jdbc:hive2://svdt5hadoopms02.bigdatadev.sa> ALTER TABLE customer_transaction_extract DROP IF EXISTS PARTITION (date='date="2019-11-13"') PURGE;Error: Error while compiling statement: FAILED: ParseException line 1:67 cannot recognize input near 'date' '=' ''date="2019-11-13"'' in drop partition statement (state=42000,code=40000)0: jdbc:hive2://svdt5hadoopms02.bigdatadev.sa> ALTER TABLE customer_transaction_extract DROP IF EXISTS PARTITION (date=`2019-11-13`) PURGE;Error: Error while compiling statement: FAILED: ParseException line 1:
Hello everyone,I want to use the Publish Kafka processors and I need to specify the partition for each flow file. But when I choose Expression Language Partitioner class and add my partition info on Partition field, it does not publish my records to appropriate partitions. I realize that, instead, it gets my partition string and hashes. Then it publishes the records to partition with hashed value. I dont understand why it works like this. I want to choose a spesific partition for each flow file. How can I achieve this? Here is the code from nifi github repo. As we can see it hashes the partition value: private Integer getPartition(final ProcessContext context, final FlowFile flowFile) { final String partitionClass = context.getProperty(PARTITION_CLASS).getValue(); if (EXPRESSION_LANGUAGE_PARTITIONING.getValue().equals(partitionClass)) { final String partition = context.getProperty(PARTITION).evaluateAttributeExpressions(flowFile).getValue();
Hello, Posting the question since i didn't see API command for CM to stop/start service on a specific host. I'm not asking for decommission/recommission as this will require blocks to be copied prior to eviction. This is to facilitate OS patching and will be pretty quick probably 2-3 hour downtime.
I'm currently new with Nifi but I have a task to achieve. My task is to insert a data in a Database via InvokeHTTP Processor. But I don't know where can I insert the json format, I tried to insert it inside the Put Response Body In Attribute field and Changed the Send Message Body to "true". But when I tried to start it, It doesn't proceed to the queue or even sends an error.
Hi everyone! I hope all is well. I have this json { "Data": { "ID": "09878666", "DATE": "2022-01-01", "ARRAY_ONE": [ { "NAME": "test_1", "details": [ { "address": "123123" } ] }, { "NAME": "test_2", "details": [
Dear All, On one particular cluster we have spark 2.3 running(CDH 5.15.1). can it be possible to only upgrade spark to 2.4 ? by remaining on the same CDH version(5.15.1). will it compatible with existing service ?. kindly suggest
Hi I'm using nifi 1.11.4 and I came across the following issue: I'm dynamically reading a CSV file that contains 2 headers with the same name ( can't use avro schema registry as I don't the header names in advance). When I'm trying to use CSVReader to read the file "I'm getting duplicate header error". How can I handle this situation?Note: I need to maintain the same header name.
Hello!I'm using CM api v19I'm trying to get only critical alerts which I'm looking at right now (RED ones).Tried https://cloudera.github.io/cm_api/apidocs/v19/path__events.html /api/v19/events?query=category==HEALTH_EVENT;severity=CRITICAL The output consists of too many not relevant events. What should I do to get only critical events displayed on the dashboard?Thank you.
Hello,a question regarding application design in NiFi. We have a REST resource which provides data changes since a unix timestamp, which is passed inside a json structure to be sent as http POST.The major question is how and where to keep the state of the last unix timestamp and how this state is accessible to operation.We should be able to reset the timestamp to any value to repeat calls. Also we should be able set increment, which es added to the timestmap in the next call. Similary, we have a related issue ina use case, which access a database. We generate a query in GenerateTableFetch and set the property "Maximum-value Columns".Here the state is maintened by the processor, but it pretty much unclear how to set the state to specific stating value. To clear the state is obviously not appropriate. Best regardsJaro
Hi, Company I'm working for is paying subscription to Cloudera and I need to use Cloudera support on their behalf. When I created my cloudera account with company mail I don't see any subscription or asset. My colleague did the same and his account was paired automatically. What's proper way how to link my account to company I'm working for ? Can I trigger this manually ? Thank you for any help.
Hello, Apache druid cannot be added as a separate service in CDP but I can see its binaries under the CDH-7.1.7 parcel folder. Is Druid available and supported in CDP?
Hello all, I am trying to connect to Kafka from my Flink flow. I am using Flink version 1.14.3 and Kafka connector version: flink-connector-kafka-0.11_2.11:jar:1.11.6 (latest version in Maven repo). I am using FlinkKafkaConsumer011 in my code to create Kafka consumer to consume my kafka topics. However, when running Flink and deploying my flow, I see the below error thrown in logs: java.lang.NoSuchMethodError: org.apache.flink.api.common.functions.RuntimeContext.getMetricGroup()Lorg/apache/flink/metrics/MetricGroup;at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.run(FlinkKafkaConsumerBase.java:762)at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:110)at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:67)at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:323) Appreciate any help on this. - Prabu.
upgradation
Hi All. I'm relatively new to NiFi and would like a little help in designing a data flow that looks like this: SELECT from a SQL data sourcesplit/convert to JSONoptionally transform JSONmerge to 500 record batchesPOST to target via REST API (requires session token from API auth POST)I know how to create this flow in NiFi. The part I'm having trouble with is including a step that gets a session token via the REST API auth endpoint. I can get the session token using InvokeHTTP no problem. I just don't know how to add the session token to the flow file(s) containing the data to POST to the API. Thanks for your help.
Hi All, I want to append cluster name in the 'Cloudera Alert mail subject'. I am not getting any configuration for same. Please suggest how to do that. Current Subject: [Cloudera Alert] 4 Alerts since 2:31:41 AM Want to change as below (assuming cluster name as ABC):[Cloudera Alert - ABC ] 4 Alerts since 2:31:41 AM Regards,Banshi.
在CDP集群hive的外部仓库目录权限默认为1777,而内部仓库目录为0770,这样会出现一个问题,hive的外部仓库目录任何用户都可以写入数据问题。是设计就是这样还是起塔问题?
Hi guys, we added solr srever in solrCloud,when I want to achieve to HA in solrCloud. but it is failed in transfer. when one is stop , the other one is living and used by Atlas.
Hi,We have noticed on ambari that after a maintenance that both hbase masters are on "Standby" mode:We tried without success to restart each HBase master to see if they were going to change into "Active". Could you please help use
Hello all,Please bear with me if I ask a simple/basic question. I am new to NiFi and appreciate your patience and support.I am setting up secure NiFi in 2 clusters. I am using NiFi 1.15.3 version in my setup. My cluster 1 has nodes: node1, node2, node3 and cluster 2 has nodes: node4, node5, node6.I have created certificates in my organization by setting node1 as primary node and other nodes as alternative nodes. I use the same certificates in both clusters since I added all the nodes to the certificate when creating it.My cluster 1 starts and I can able to login to web ui with admin user without any issues. However, my cluster 2 starts without any issues but when I try to login, it throws:Insufficient permission. Untrusted proxy CN=node1, O=xxxx, L=yyyy, ST=zzzz, C=USand in logs:o.a.n.w.s.NiFiAuthenticationFilter Authentication Failed GET https://node4:8443/nifi-api/flow/current-user [Untrusted proxy CN=node1, O=xxxx, L=yyyy, ST=zzzz, C=US]As a part of troubleshooting, I added the node
I can't connect to db2/as400I have tried with db2jcc4.jar, db2jcc.jar, jt400.jarjt400.jarErrorWARN [Timer-Driven Process Thread-4] o.a.n.controller.tasks.ConnectableTask Administratively Yielding ExecuteSQL[id=3732162d-1fac-1df4-52b9-e9190b60af34] due to uncaught Exception: java.lang.AbstractMethodError: Receiver class com.ibm.as400.access.AS400JDBCConnection does not define or inherit an implementation of the resolved method 'abstract boolean isValid(int)' of interface java.sql.Connection.
Hello, A simple create table as select fails for some tables in my original_db and I don't know why.The query I use is below, and the error HIVE gives out is really long, but the main theme is "Vertex Failed", "Error while processing row", "No enum constant" - as you can see below. However, when ran without "STORED AS PARQUET" option, the query runs fine.Any ideas what I can try to maybe create the tables as compressed parquet? Thanks beeline -e "SET parquet.compression=SNAPPY;SET hive.exec.compress.output=true;SET parquet.output.codec=snappy;set hive.tez.container.size = 8192;DROP table if exists DB.table;CREATE table DB.tableSTORED AS parquetAsSELECT * FROM ORIGINAL_DB.table;" ERROR : Status: FailedERROR : Vertex failed, vertexName=Map 1, vertexId=vertex_1640013186854_27946_1_00, diagnostics=[Task failed, taskId=task_1640013186854_27946_1_00_000004, diagnostics=[TaskAttempt 0 failed, info=[Error: Error while running task ( failure ) : attempt_1640
Hello, I did enough google before coming to this forum. I have table Employee with following column Names (there are 40 columns) Employee_ID, Employee_Type, Employee_Tenure I want to use these column names in CASE Statement as part of HIVE Query to assign value. E.g. Case when Column Name = 'Employee_Type' then 1 else 0 when Column Name = 'Employee_Tenure' then 2 else 0 end as Rank I know I can "show columns in Employee" to get all column names. But I don't know how to refer output of this query in CASE statement I also try to save results of Query into variable ( I could be wrong doing this ) set hivevar:col_names=(show columns in employee) select '${hivevar:col_names}' but I get below error : Error while processing statement: Variable substitution depth is deeper than 40 for expression Any help appreciated. If my question is too naive or stupid - I apologize.
How can I transform a string to an integer in NiFi? I tried JoltTransform, but the string is transformed to a negative (??) integer. In the example, below, the timestamp_start original string value 1677720088000 is transformed to -1612124736. What am I missing in my Jolt specification? Any help is appreciated. Is there an alternative to the JoltTransform - another processor? Looks like this is a known issue: https://github.com/bazaarvoice/jolt/issues/749 Original JSON Transformed JSON Jolt Specification [ { "operation": "modify-overwrite-beta", "spec": { "timestamp_start": "=toInteger" } }, { "operation": "default", "spec": {} }]
I have recently upgraded Private Cloud Base components (CM 7.5.4, CDH 7.1.7). I am unable to locate a Spark 3 or Spark3 LIVY service after following the CDS 3.2, installation steps. ( https://docs.cloudera.com/cdp-private-cloud-base/7.1.7/cds-3/topics/spark-install-spark-3-parcel.html ) I am able to download, distribute, and activate the Spark 3 parcel but there are no options to add it as a service. I did add the `csd` jars to the directories with no luck. logs indicate conflicts with the csd (I tried with both the page listed .49 and also the unlisted .1001). Removing the csd jars removes the warning but the service is still not available. "...2022-02-11 12:26:19,206 WARN main:com.cloudera.csd.components.CsdRegistryImpl: Found multiple CSDs with non-homogeneous versions for service type SPARK3_ON_YARN. Latest version is 7.5.42022-02-11 12:26:19,208 INFO main:com.cloudera.csd.components.CsdRegistryImpl: Ignoring CSD: bundle name [SPARK3_ON_YARN-3.2.0.3.2.7170
I started a apache phoenix query server, phonenix version is apache-phoenix-5.0.0-HBase-2.0-binAll other functions work well in the cmd line of sqlline-thin.py. But when I tried to get the primary key of a table, its just listed nothing. 0: jdbc:phoenix:thin:url=http://localhost:876> !primarykeys FN2.TESTYL2+------------+--------------+-------------+--------------+----------+----------+| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | COLUMN_NAME | KEY_SEQ | PK_NAME |+------------+--------------+-------------+--------------+----------+----------++------------+--------------+-------------+--------------+----------+----------+ when I tried in phoenix cmd line sqlline.py, it works well.do you know why the thin phoenix query server cannot find the primary key? thanksYang
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.