Ask questions, get answers, or find community-sourced articles
Recently active
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.
Hello.In Yarn Queue Manager, there is 4 queues defined :but when we submit queries (using Hue or SAS Software to load data), only the default queue is used.And we can go very high :From what we undestand, Default queue is defined for using 20% of the cluster but can use up to 100%, so 70% is normal.But our cluster is 365 GB / 15 vCores and some applications can use more :7 / 7 / 6 / 5 / 3 vCores in the graph = 28 vCore !How is it possible ?Thanks for your help
I purchased an exam a few days ago and I could not provide information for billing with which I can refund my exam costs through my company. Can you provide me with some actual help to provide me with a bill? I tried emailing the certification@cloudera.com email a few days (every day from that) but got no reply and it is getting frustrating...
Hi,Input is getting from jolt transforms and data is something like :{"dv_sys_id" : [ "23ec0223138d73006877", "983f853edb2c77007166f", "6a3d0a23138d73006877b3", "805d5339db8dd050f66" ]}output should go in invokehttp processor somthing like: dv_sys_id: 23ec0223138d73006877, 983f853edb2c77007166f, 6a3d0a23138d73006877b3, 805d5339db8dd050f66 remote url : https://<url>${dv_sys_id} How can i achieve this requirement, Pls help me out.
Hi, I'm struggling with the error below while trying to run Oozie workflow containing ssh action:[FNF], Message [FNF: Required Local file /tmp/oozie-oozi2214367252678167938.dir/ssh/ssh-base.sh not present Can anyone please suggest a potential cause and resolution? Thank you!
Hello experts,We are facing an issue, where preprod Nifi server is able to read a kafka topic correctly.It is able to read all 3 partitions data.At the same time UAT Nifi server is connecting to same topic with different consumer group id and which is reading only the partition 0 & partition 1 but not partition 2.Screen shot from Lenses abt the same consumer group which is facing issue Any idea what could be the possible reasons?ThanksMahendra
we have HDP Hadoop cluster with two name-node services ( one active name-node and the secondary is the standby name-node )due of unexpected electricity failure , the standby name-node failed to start with the flowing exception , while the active name-node starting successfully2024-02-02 08:47:11,497 INFO common.Storage (Storage.java:tryLock(776)) - Lock on /hadoop/hdfs/namenode/in_use.lock acquired by nodename 36146@master1.delax.com2024-02-02 08:47:11,891 INFO namenode.FSImage (FSImage.java:loadFSImageFile(745)) - Planning to load image: FSImageFile(file=/hadoop/hdfs/namenode/current/fsimage_0000000052670667141, cpktTxId=0000000052670667141)2024-02-02 08:47:11,897 ERROR namenode.FSImage (FSImage.java:loadFSImage(693)) - Failed to load image from FSImageFile(file=/hadoop/hdfs/namenode/current/fsimage_0000000052670667141, cpktTxId=0000000052670667141)java.io.IOException: Premature EOF from inputStreamat org.apache.hadoop.io.IOUtils.readFully(IOUtils.java:204)at org.apache.hadoop.hdfs.se
I have enabled https on nifi registry properties and generated key store and trust store using tls toolkit and added in the properties file. I am able to start nifi registry on port 18443 and host 0.0.0.0 as it showing in logs that jetty server started on https://0.0.0.0:18443/nifi registrymy nifi registry is hosted as aks pod. when I enable ingress for it. It’s returning me as 502 bad request.are there any changes to be done to make my nifi registry run https. Goal : i want to enable 2 way ssl authentication so that nifi could connect to nifi registry.
Hi,recently I have been trying to track my spark application using SparkListener.Now I have a problem: There is a application, the result of its execution is SUCCESSED on Yarn WebUI,but it's actually a failed application. And my listener class can not get the error message,the application log only show the Start events for failed jobs and tasks.Some can help me ?
Where is the location for the Spark driver and executor logs when the Spark job is executed in YARN cluster mode?Does yarn logs -applicationId CMD capture the logs? I can't find log4j-active.log for the driver.
I am trying to pull the records from the Hbase based on the row key in pyspark using the following details but the records which is returning showing all the records (i,e without filter), can you please help me to resolving the issue
hi cloudera, I need to use Spark on a host that is not part of the Cloudera cluster to run Spark jobs on the Cloudera cluster.Is it possible to use it this way? If yes, how to configure?what I've already tried:1. Download "https://www.apache.org/dyn/closer.lua/spark/spark-3.3.4/spark-3.3.4-bin-hadoop3.tgz"2. Copy the "conf" files from the Cloudera cluster and send them to the new Spark directory3. exported the variables "HADOOP_CONF_DIR" and "SPARK_CONF_DIR" and "SPARK_HOME" using the new spark directory "spark-3.3.4-bin-hadoop3" with the files4. When trying to run spark-shell as an example, nothing happens, it hangs as shown below:Setting default log level to "WARN".To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).Welcome to____ __/ __/__ ___ _____/ /___\ \/ _ \/ _ `/ __/ '_//___/ .__/\_,_/_/ /_/\_\ version 3.3.4/_/Using Scala version 2.13.8 (Java HotSpot(TM) 64-Bit Server VM, Java 11.0.16.1)Type in expressions to have them evaluated.Typ
Hi - I've got everything working with NIFI 2.0.0 M2 when the the python command line is commented out but I'd like to get it up and running with the python command line uncommented.nifi.properties file linenifi.python.command=/usr/bin/python3.11 nifi-app.log info:Caused by: java.lang.IllegalStateException: Failed to communicate with Python Controllerat org.apache.nifi.controller.FlowController.<init>(FlowController.java:581)at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:411)at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:83)at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178)... 95 common frames omittedCaused by: java.io.IOException: Failed to create Python Environment ./work/python/controller: process existed with code 1at org.apache.nifi.py4j.PythonProcess.setupEnvironment(PythonProcess.java:223)at org.ap
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?
Hi Team,I am using Nifi (3-node cluster) version 1.23.2 in my environment. My doubt, is there any case if Nifi processor (any processor within a process group) stops suddenly due to load/any other issue? If that happens, then what will be the solution? Does it lead to data loss?
Hi Team, hoping for the best that someone will help me out from this issue ASAP.I am working with nifi in local machine from couple of months to develop some jobs.now as part of developing one job I need to read remote file in nifi by using minifi,as like tailfile processor how it reads nifi log files continuously I have to read remote log files.in the process of finding solution I seen that by using minifi we can do that.so firstly I installed minifi remote server because I have to read remote log files by providing local machine path of outputfolder those log files will place in that path.After installing minifi in remote server.unzippped it and tried to start the services by using ./minifi sh start .now I could see services are started and next firstly tried to take and input port in nifi UI and connected that with putfile processor by providing output path and provided connection for input and putfile .nextly taken a processor group and inside that processor group
We try to use PutHDFS process ,automatically the owner of file which created by PutHDFS in Cloudera will be same domain user which NIFI running.The OS of NIFI is window 10 and the server of Hive is Cloudera docker.how we can update owner of file from domain user to Cloudera user.
Good evening, I am having a lot of trouble getting an instance of NiFi running with Mutual TLS. I have different errors depending on whether the effort involves version 1.xx or version 2.xx. I'm hoping to get some help. This is all being attempted via Docker.My YAML:```version: "3.9"services: nifi: image: apache/nifi:1.24.0 # hostname: nifi container_name: nifi ports: # - 8443:8443 - "9449:9449" environment: - NIFI_WEB_HTTPS_PORT=9449 - NIFI_WEB_HTTPS_HOST=0.0.0.0 - NIFI_WEB_PROXY_HOST=localhost,localhost:9449,192.168.1.56,192.168.1.56:9449 - AUTH=tls - KEYSTORE_PATH=/opt/nifi/nifi-current/certs/jks/nifi-ks.jks - KEYSTORE_TYPE=JKS - KEYSTORE_PASSWORD=randomPassword - TRUSTSTORE_PATH=/opt/nifi/nifi-current/certs/jks/trus
I am currently running Hbase CDH 5.5 on Centos 7. I need to upgrade to RHEL8. Does CDH need to be upgraded as well ? What happens to the existing data ?
Hello ,I'm using NIFI to replicate 250 million messages between Kafka topics.The problem is that NIFI replicates messages in a non-sequential order, resulting in the destination topic storing messages differently than the source topic.for examplesource topic - partition 0offset:5 key:a value:v1offset:6 key:a value:v2offset:7 key:a value:v3destination topic - partition 0offset:5 key:a value:v2offset:6 key:a value:v1offset:7 key:a value:v3The topics are configured with a cleanup policy: compact.I'm using ConsumeKafka and PublishKafka processors to replicate topics.
I am running count(*) from table (Apache Phoenix 5.1, HBase2), it results in high number of requests in HBase1,4k requests for table with 7k rowsIn previous version (Hortonworks, Hbase 1.1, Phoenix 4.7) count query was not resulting such high number of requests in HBase.tried (major) compaction and updating Phoenix statistics, not helped.Is this expected or miss some configuration? obviously it makes fullscan even when there is primary key for the tableHBase UI x Count query
I have this JSON:{ "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Herman Melville", "title": "Moby **bleep**", "isbn": "0-553-21311-3", "price": 8.99 }, { "category": "fiction", "author": "J.R.R. Tolkien", "title": "The Lord of the Rings", "isbn": "0-395-19395-8", "price": 22.99 } ]}I want a list/record set of categories. CSV, plain text, doesn't matter, but let's say CSV:category"refereces""fiction""fiction"I have tried many things, too many to repeat them all here. But basically, I have a GenerateFlowFile where the JSON is hard-coded, then a QueryReport where the reader is a JsonPathReader where I have properties for all fields in the JSON:store $.storebook $.store.book[*]category $.store.book[*].categoryetc.Just to see what'
I created a template to convert data from querying Postgres database and then convert it into xml. I want to run it by using command line arguments. Are there any way to do this in NiFi? Thank you
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.