Find answers, ask questions, and share your expertise
Recently active
I have enabled the repository Encryption with protocol version 1, after that there is below error in Base64EncodeContent for some of the flowfiles and other flowfiles gets successfully processed.Can someone please help on this. 2023-08-08 19:26:07,368 ERROR [Timer-Driven Process Thread-5] o.a.n.p.standard.Base64EncodeContent Base64EncodeContent[id=7ba6e988-8bc9-392a-1ae8-f38733a69144] Processing halted: yielding [1 sec]org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFileat org.apache.nifi.controller.repository.StandardProcessSession.handleContentNotFound(StandardProcessSession.java:3701)at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:3454)at org.apache.nifi.processors.standard.Base64EncodeContent.onTrigger(Base64EncodeContent.java:135)at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)at org.apache.nifi.controller.StandardProcessorNo
Hi everyone,I have a weird behavior with one of my DBCP Controllers.I'm trying to conncet to a Progress-Database on 10.254.249.24:31510. The controller is configured as shown: When I try to connect the Database (ie. with an "Execute SQL Processor" I get the following error message:Now the weird thing is: The shown Port number in the error mesage is not the Port I configured in the DBCP Connection.I thought it's a firewall thing, but when I check the IP via netcat, everything is fine:I also can succesfully connect to the database with the exact same parameters and *.jar-Files as shown in the first Screenshot when I use a SQL Client like "SQuirreL".Any Ideas?Best regardsMaik
I want to create a flow In NIFI where i want to consumer data from 3 Kafka topics and produce that data into 3 different Kafka topics . each topic should produce data into unique topic . for example - kafka topics 1 --> produce to topic Akafka topics 2 --> produce to topic Bkafka topics 3 --> produce to topic Ci want to use only one Consumer processor and one producer processor . Right now i am using 3 produce Kafka processor .Can anyone suggest better approach to do so and in more optimized way. Help me to reduce three publish processors to 1 , but it should be still able to consume from multiple topics and produce to multiple topics but dynamically , like topic1 produces data to topic A only and topic 2 to topic B and so on . i tried using expression language . kafka.topic is the attribute which contains consumer topics. so i added if else condition for different consumer topic but the output was not the producer topic but whole string me
I was trying to use python query to extract data from Hive table and create a data frame. It gave me the following error at cursor.execute line.pyhive.exc.OperationalError: TExecuteStatementResp(status=TStatus(statusCode=3, infoMessages=['*org.apache.hive.service.cli.HiveSQLException:Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask:17:16', 'org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:348', 'org.apache.hive.service.cli.operation.SQLOperation:runQuery:SQLOperation.java:228', 'org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOperation.java:265', 'org.apache.hive.service.cli.operation.Operation:run:Operation.java:260', 'org.apache.hive.service.cli.session.HiveSessionImpl:executeStatementInternal:HiveSessionImpl.java:575', 'org.apache.hive.service.cli.session.HiveSessionImpl:executeStatement:HiveSessionImpl.java:550', 'org.apache.hive.service.cli.CLIService:executeState
I am trying to transform a json using jolt where i am moving the array inside serviceCharacteristic to outside of service {}, eventually i plan to move to respective positions { "serviceOrderItem": [ { "action": "modify", "id": "0965f63b-db26-4397-b222-190a891838f0", "service": { "href": "serviceInventory/v4/service/adaptiveNetworkSite/1b9a3fae-f50b-4310-887d-60988f8d5645", "id": "adaptiveNetworkSite", "serviceCharacteristic": [ { "name": "modifyPath", "value": [ { "op": "add", "path": "$.supportingService", "value": {} }, { "op": "sub", "path": "$.supportingService", "value": {} } ] } ] } }, { "action": "create", "id": "0965f63b-db26-4397-b222-190a891838f0", "service": { "href": "serviceInventory
Can someone please help me modify the below code?Based on the hours parameter, I am fetching folders from HDFS location, then from each folder, taking the latest csv file(based on getModificationTime) and loading it into the spark dataframe.The below code is working, but there are some issues since it's running in a loop, so after every iteration the data in the dataframe is overwritten by new data, and at the end I am only getting the last file data. Is there any way to collect all the latest files, i.e. in a collection, then execute the dataframe load step, so it can load all the latest files from every folder in the dataframe?Code:val static_path="/user/hdfs/test/partition_date="val hours=3//creating list of each folder. val paths = (0 until hours).map(h => currentTs.minusHours(h)) .map(ts => s"${static_path}${ts.toLocalDate}/hour=${ts.getHour}").toList// iterating every folder from the list for (eachfolder <- paths) { var New_Folder_Path: String = eachfolder.toString
I am trying to fetch a count of total columns for a list of individual tables/views from Impala from the same schema. however i wanted to scan through all the tables from that schema to capture the counts of columns of all the tables in a single query ? i have already performed a similar exercise from Oracle Exa data ,however since i a new to Impala is there a way to capture all the tables in a single query ? Exadata query for reference # Oracle Exadata query i used select owner, table_name as view_name, count(*) as countsfrom dba_tab_cols /*DBA_TABLES_COLUMNS*/where (owner, table_name) in(select owner, view_namefrom dba_views /*DBA_VIEWS*/where 1=1and owner='DESIRED_SCHEMA_NAME')group by owner ,table_nameorder by counts desc;impala /hiveDESCRIBE schemaName.tableName; # Impala /Hive how to find out ? if i need to run a single query check i was following the below for multiple tables/view how to find out the total column counts ?
I have a table and when I am trying to query it through imapala it throws me this error:File 'hdfs:/path/table/1_data.0.parq' has an incompatible Parquet schema for column 'db.table.parameter_11'. Column type: STRING, Parquet schema: optional int64 amount [i:10 d:1 r:0] But when I query it through hive it returns results correctly. How can I fix it?
Hbase service check is failing with below error:ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2829) at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:2085) at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:706) at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:392) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:359) at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:339)For usage try 'help "create"'Took 9.2549 secondshbase:025:0> put 'ambarismoketest','row01','family:col01','id620aaa55_date300323'ERROR: Unknown table ambarismoketest!For usage try 'help "put"'Took 0.0754 secondshbase:026:0>
Dear All,Yesterday I uploaded a parcel to CM and found some bugs within it. Therefore, I deleted the parcel and completely removed the files in the parcels and .flood directories.Now, when I click the 'Add Service' button, there is still a service type that I defined within the parcel I deleted. How can I remove this service type, and where does CM record this information?
After using JOLT for many years now I still find myself fumbling my way into solutions, I am however stuck on the problem of how to selectively remove values from a JSON array.The scenario is that I am trying to solve for is that I want to wholly remove any values in the array whereby there is an equals "=" or really any "special" character.Here is the example input: { "tags": [ "misp-pattern=\\\"Phishing - T1566\\\"", "circl:incident-classification=\\\"phishing\\\"", "IDS" ]} and the output should be; { "tags": [ "IDS" ]} For those interested I am trying to transpose tags from MISP (Threat Intel platform) and under certain conditions it inserts some horrible entries I want to wholly remove them.I understand I can do this in a few steps by extracting and "recasting" this back into JSON however I need to do it via JOLT
Hello All,We have 12 disk configured on each data node of 7.3 TB disk size of each, so that makes up the total space on each data node 87.6 TB. Disk size on each data node:/dev/sdb1 7.3T /data1/dev/sdc1 7.3T /data2/dev/sdd1 7.3T /data3/dev/sde1 7.3T /data4/dev/sdf1 7.3T /data5/dev/sdg1 7.3T /data6/dev/sdh1 7.3T /data7/dev/sdi1 7.3T /data8/dev/sdj1 7.3T /data9/dev/sdk1 7.3T /data10/dev/sdl1 7.3T /data11/dev/sdm1 7.3T /data12Due to growth in data we have already come close to the threshold value on each data node. Hence need suggestion/best practice to know is it better to add more disk of the same size or should we increase data nodes. considering we don't compromise with the load on the servers. So if adding nodes would be a better option then we will go for that.We are currently on CDP 7 and I want to ensure we follow the best practice so that should accommodate our space concerns in the long run.Kindly share if any one has to come to this situation and what would be the best app
I have a source table with 200 million of rows, which needs to fetch to another system.The other system offer a batch insert. Is there an NiFi example I can follow that will read a source table and split the data into to 20 chucks and make 20 batch inserts, concurrently?
Hello, im new in Hadoop and just want to know, can i using hdfs as local storage in my Spark driver?For example: im sending throught Livy a task wherekind":"pyspark" and "code" which contains some operations, that in result should be create some new file.When i do it in yarn cluster mode, i find that new file was created in a local storage of node with path like: /tmp/hadoop-username/nm-local-dir/usercache/root/appcache......Can i have any way for set path instead local in hdfs?I want save my spark results(new created file) in hdfsWhen i set spark.local.dir or yarn.nodemanager.local-dirs = hdfs:///temp Livy session just not startingMounting HDFS dfs-fuse not seems like the best way.Or i should use my own fileApp.jar that will be work on each node and each sessions?
iam trying to publish data into multiple kafka topics with some conditions but instead of returning value of the expression , whole value passed for the property is coming.customerTopic should return me the value of the expression but its returning the expression itselfattaching the images of the flow.
I want to create a flow In NIFI where i want to consumer data from 3 Kafka topics and produce that data into 3 different Kafka topics . each topic should produce data into unique topic . for example - kafka topics 1 --> produce to topic Akafka topics 2 --> produce to topic Bkafka topics 3 --> produce to topic Ci want to use only one Consumer processor and one producer processor . Right now i am using 3 produce Kafka processor .Can anyone suggest better approach to do so and in more optimized way.
I have issue when i add service management and error log below2023-11-13 09:59:02,907 INFO scm-web-1336:com.cloudera.server.cmf.cluster.RulesCluster: Beginning automatic role assignment2023-11-13 09:59:02,909 ERROR scm-web-1336:com.cloudera.server.web.common.JsonResponse: JsonResponse created with throwable:java.lang.NullPointerExceptionat com.cloudera.server.cmf.cluster.RulesCluster.createRulesSession(RulesCluster.java:169)at com.cloudera.server.cmf.cluster.RulesCluster.doRoleAssignment(RulesCluster.java:328)at com.cloudera.server.cmf.cluster.RulesCluster.createAndConfigureServices(RulesCluster.java:600)at com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2.createCustomServiceAndRoles(AddServiceWizardController2.java:893)at com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2.buildCluster(AddServiceWizardController2.java:834)at com.cloudera.server.web.cmf.wizard.service.AddServiceWizardController2.buildTestDatabaseData(AddServiceWizardControll
How to save NIFI Error log to database table ?
Hello Team,I am trying to run beeline commandline to export the hive table to a location. i am trying to set replication factor to 1 but it if failing with following error :Error: Error while processing statement: Cannot modify dfs.replication at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)Cluster details :3 nodes cluster and in all hvie-site.xml i have set the following property and then restarted hive and hiveserver2 <property><name>hive.security.authorization.sqlstd.confwhitelist.append</name><value>mapred.*|hive.*|mapreduce.*|spark.*|dfs.*</value></property>Beeline Command : sudo -u hive beeline -u "jdbc:hive2://machine1.dev.domain.com:2181/default;password=hive;principal=hive/_HOST@DEV.domain.COM;serviceDiscoveryMode=zooKeeper;ssl=true;sslTrustStore=/var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks;trustStorePassword=****;user=hive;zooKeeperNamespace=hivese
Json input:{"schema": {"type": "struct","fields": [{"type": "struct","fields": [{"type": "string","optional": false,"field": "COUNTRY_ID"},{"type": "string","optional": true,"field": "COUNTRY_NAME"},{"type": "string","optional": true,"field": "REGION_ID"}],"optional": true,"name": "poc2.NIFITEST.COUNTRIES.Value","field": "before","version": null},{"type": "struct","fields": [{"type": "string","optional": false,"field": "COUNTRY_ID"},{"type": "string","optional": true,"field": "COUNTRY_NAME"},{"type": "string","optional": true,"field": "REGION_ID"}],"optional": true,"name": "poc2.NIFITEST.COUNTRIES.Value","field": "after","version": null},{"type": "struct","fields": [{"type": "string","optional": false,"field": "version","name": null,"version": null,"parameters": null,"default": null},{"type": "string","optional": false,"field": "connector","name": null,"version": null,"parameters": null,"default": null},{"type": "string","optional": false,"field": "name","name": null,"version": null,"p
Dear Experts,I want to transfer data from NiFi to Elasticsearch using the PutElasticsearchHTTP processor. However, I am encountering the error "Elasticsearch returend code 400 with message bad request" The setup, which I have depicted in the image below, was working previously. How should I resolve this problem?Regards
I am running Hadoop version 3.2.4 in windows and want to perform a WordCount operation on the file located in hadoop/share/hadoop/mapreduce/share/mapreduce-examples-3.2.4.jar. However, it failed, and there is an error message as follows: Application application_1699601027477_0002 failed 2 times due to AM Container for appattempt_1699601027477_0002_000002 exited with exitCode: 1Failing this attempt.Diagnostics: [2023-11-10 14:44:16.479]Exception from container-launch.Container id: container_1699601027477_0002_02_000001Exit code: 1Exception message: '/tmp/hadoop-ryan' is not recognized as an internal or external command,operable program or batch file.[2023-11-10 14:44:16.479]Container exited with a non-zero exit code 1.[2023-11-10 14:44:16.479]Container exited with a non-zero exit code 1.For more detailed output, check the application tracking page: http://LAPTOP-IPDKGW12:8088/cluster/app/application_1699601027477_0002 Then click on links to logs of each attempt.. Failing the a
Hi community,I used multiget to get data but it always returns no data. I tried testing with a rowkey and it worked fineGET 'http://localhost:8000/Report.Stops/multiget?row=G38040-502793%2c1699493158'No rows found.Get by rowkeyGET 'http://localhost:8000/Report.Stops/G38040-502793%2c1699493158'<CellSet><Row key="RzM4MDQwLTUwMjc5MywxNjk5NDkzMTU4">...</Row></CellSet>Shellget 'Report.Stops','G38040-502793,1699493158'COLUMN CELL d:1 timestamp=1970-01-21T00:04:56.975, value=\x98\x94\x00\x00i'm using hbase: 2.4.14
hi all we have HDP version - 2.6.4 with active and standby namenode is it possible to capture the active namenode IP by REST API? we try by the following API , but API not return any output curl -sH "X-Requested-By: ambari" -u admin:admin -H "X-Requested-By: ambari" -X GET http://master:8080/api/v1/clusters//services/HDFS
I have an input fixed width file as belowJohn 32 M New York 100I want to convert it in to a Json like below{"Name": "John","Age": 32,"Gender": "M","City": "New York","Country": 100}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.