Hortonworks.com
  • Explore
    • All Tags
    • All Questions
    • All Repos
    • All Repos
    • All SKB
    • All SKB
    • All Articles
    • All Ideas
    • All Articles
    • All Ideas
    • All Users
    • All Badges
    • Leaderboard
  • Create
    • Ask a question
    • Add Repo
    • Add Repo
    • Create Article
    • Post Idea
    • Create Article
    • Post Idea
  • Tracks
    • All Tracks
    • Community Help
    • Cloud & Operations
    • CyberSecurity
    • Data Ingestion & Streaming
    • Data Processing
    • Data Science & Advanced Analytics
    • Design & Architecture
    • Governance & Lifecycle
    • Hadoop Core
    • Sandbox & Learning
    • Security
    • Solutions
  • Login
HCC Hortonworks Community Connection
  • Home /
  • Solutions /
  • Home /
  • Solutions /
avatar image

How to get a Nifi counter value using ExecuteScript Processor and Groovy?

Shashank Chandhok created · Dec 07, 2017 at 08:28 AM
0

SupportKB

The NiFi supports Rest API that can be used to probe NiFi, to obtain the value of any specific counters. The following is a sample command to obtain the counters from NiFi server::

# curl 'http://nifi-host:port/nifi-api/counters'
To probe the counters, create an ExecuteScript processor with Groovy script and necessary curl commands.  

REFERENCE

[1] NiFi Rest API

About:
This article created by Hortonworks Support (Article: 000005877) on 2017-05-25 03:12
OS: n/a
Type: Developing_Code, Cluster_Administration
Version: n/a
Support ID: 000005877
thub.nodes.view.add-new-comment
faqhwsupportNifi
Add comment
10 |6000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow

Follow

avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image avatar image avatar image
avatar image avatar image avatar image

Related posts

FAQs about security implementation of NiFi Web UI

Can the ListFile/ListSFTP/ListFTP Processor be used to fetch files from the directories without storing the state management?

What is QoS and what are the recommendations for QoS in ConsumeMQTT processor?

Does NiFi Support Fetching Data from FTPS server?

How to create Multihoming setup on NiFi UI?

How to enable debug on a NiFi Processor?

Does the Putkafka and PublishKafka processors in NiFi support multi-tenancy?

Can NiFi write to Amazon S3 using Amazon Server-Side KMS encryption?

Error:"java.io.IOException: Expected to read a Sentinel Byte of '1' but got a value of '0' instead" when starting a NiFi service

ERROR:"org.apache.hadoop.hbase.MasterNotRunningException: Can't get connection to ZooKeeper: KeeperErrorCode = AuthFailed for /hbase-unsecure" when connecting to an unsecure or non-kerberized HBase cluster through NiFi HBase Client Services

HCC Guidelines | HCC FAQs | HCC Privacy Policy

Hortonworks - Develops, Distributes and Supports Open Enterprise Hadoop.

© 2011-2017 Hortonworks Inc. All Rights Reserved.
Hadoop, Falcon, Atlas, Sqoop, Flume, Kafka, Pig, Hive, HBase, Accumulo, Storm, Solr, Spark, Ranger, Knox, Ambari, ZooKeeper, Oozie and the Hadoop elephant logo are trademarks of the Apache Software Foundation.
Privacy Policy | Terms of Service

HCC Guidelines | HCC FAQs | HCC Privacy Policy | Privacy Policy | Terms of Service

© 2011-2018 Hortonworks Inc. All Rights Reserved.

Hadoop, Falcon, Atlas, Sqoop, Flume, Kafka, Pig, Hive, HBase, Accumulo, Storm, Solr, Spark, Ranger, Knox, Ambari, ZooKeeper, Oozie and the Hadoop elephant logo are trademarks of the Apache Software Foundation.

  • Anonymous
  • Login
  • Create
  • Ask a question
  • Add Repo
  • Add Repo
  • Create SupportKB
  • Create SupportKB
  • Create Article
  • Post Idea
  • Create Article
  • Post Idea
  • Tracks
  • Community Help
  • Cloud & Operations
  • CyberSecurity
  • Data Ingestion & Streaming
  • Data Processing
  • Data Science & Advanced Analytics
  • Design & Architecture
  • Governance & Lifecycle
  • Hadoop Core
  • Sandbox & Learning
  • Security
  • Solutions
  • Explore
  • All Tags
  • All Questions
  • All Repos
  • All Repos
  • All SKB
  • All SKB
  • All Articles
  • All Ideas
  • All Articles
  • All Ideas
  • All Users
  • Leaderboard
  • All Badges