Member since
01-18-2016
169
Posts
32
Kudos Received
21
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1571 | 06-27-2025 06:00 AM | |
| 1305 | 01-14-2025 06:30 PM | |
| 1852 | 04-06-2018 09:24 PM | |
| 1989 | 05-02-2017 10:43 PM | |
| 5157 | 01-24-2017 08:21 PM |
06-04-2016
01:20 AM
@David Lam I believe that would be pretty straight forward. 1) Write your SOAP client 2) Integrate it a custom class which extends UpdaterequestFactory in the processAdd(AddUpdateCommand) method. 3) Create your updateRequestProcessorChain in the solrconfig.xml 4) Add the chain to a requestHandler Look at the example here for the ConditionalCopyProcessorFactory but just make your SOAP call instead.: https://wiki.apache.org/solr/UpdateRequestProcessor In the processAdd, since you have access to the SolrInputDocument, you can get any field's value and you can also add a new field or child document, which is just another SolrInputDocument. Be aware that by doing this you could add a bottleneck to your update pipeline if the web service is slow or down and you could also add additional stress on the Solr server, which perhaps is also serving queries. It just depends on your load and other factors. Alternatively, you could annotate the SolrDocuments in your ingest pipeline, before they are sent to Solr to push the load elsewhere. If you have no control over the ingest pipeline, you may have to do it in the update request chain anyway.
... View more
05-24-2016
06:57 PM
@Nasheb Ismaily, Double check your configuration. I know you already know this, but for the sake of a complete answer, here's how to configure FIFO. The capacity scheduler queues can be configured for fifo or fair based via Ambari's Yarn Queue Manager (top right button). The default is fifo. Via Ambari - Yarn Capacity Scheduler Queue configuration: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_performance_tuning/content/section_create_configure_yarn_capacity_scheduler_queues.html Manually: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_yarn_resource_mgt/content/flexible_scheduling_policies.html Also, the Yarn Fair Scheduler can be configured for FIFO: https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/FairScheduler.html “schedulingPolicy: to set the scheduling policy of any queue. The allowed values are “fifo”/“fair”/“drf” or any class that extends”
... View more
05-19-2016
12:51 AM
@Nasheb Ismaily, according to what I read, applications are in fifo order, according to the time of submission. If you submit them back to back very quickly, is it possible the timestamps are identical and arrived at the "same time"?
... View more
05-19-2016
12:41 AM
I want to correct what I said above. On the client, kafka.consumer exists, but I was looking on the broker. And, the answer below is correct (newly named metric/Mbean is on the new consumer).
... View more
05-18-2016
11:59 PM
@schintalapani I believe it is the new am using the interface provided by this (http://kafka.apache.org/documentation.html#newconsumerapi). <dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>0.9.0.0</version>
</dependency>
org.apache.kafka.clients.consumer.KafkaConsumer<String,String> However, I may be missing a fundamental point. I have mostly been looking at mbeans from the broker, not the client. I did run the client but still did not see kafka.consumer mbeans there either.
... View more
05-18-2016
01:41 PM
What am I missing? I'm using JConsole connected to my Kafka 0.9.0 broker to find this: kafka.consumer:type=ConsumerFetcherManager,name=MaxLag,clientId=([-.\w]+) However, there is no kafka.consumer.* (nor kafka.producer.* for that matter). Thanks.
... View more
Labels:
- Labels:
-
Apache Kafka
05-17-2016
02:47 AM
Thanks for the info @swagle. We were able to convince the customer to upgrade to Ambari 2.2.2. They were thrilled with the fact that you can add widgets directly in the UI, and the fact that Grafana is available is icing on the cake. Incidentally, here is the JIRA for adding this for Kafka and Storm: https://issues.apache.org/jira/browse/AMBARI-14941
... View more
05-16-2016
06:41 PM
These files have stuff like this in them, so how do I get this info in Ambari? {
"KAFKA_BROKER": {
"Component": [
{
"type": "ganglia",
"metrics": {
"default": {
"metrics/jvm/uptime": {
"metric": "jvm.uptime",
"pointInTime": true,
"temporal": true
},
/* -- SNIP -- */
"metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesInPerSec/count": {
"metric": "kafka.server.BrokerTopicMetrics.BytesInPerSec.count",
"pointInTime": true,
"temporal": true
},
"metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/1MinuteRate": {
"metric": "kafka.server.BrokerTopicMetrics.BytesOutPerSec.1MinuteRate",
"pointInTime": true,
"temporal": true
},
"metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/5MinuteRate": {
"metric": "kafka.server.BrokerTopicMetrics.BytesOutPerSec.5MinuteRate",
"pointInTime": true,
"temporal": true
},
"metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/15MinuteRate": {
"metric": "kafka.server.BrokerTopicMetrics.BytesOutPerSec.15MinuteRate",
"pointInTime": true,
"temporal": true
},
"metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/meanRate": {
"metric": "kafka.server.BrokerTopicMetrics.BytesOutPerSec.meanRate",
"pointInTime": true,
"temporal": true
},
"metrics/kafka/server/BrokerTopicMetrics/AllTopicsBytesOutPerSec/count": {
"metric": "kafka.server.BrokerTopicMetrics.BytesOutPerSec.count",
"pointInTime": true,
"temporal": true
},
"metrics/kafka/controller/KafkaController/ActiveControllerCount": {
"metric": "kafka.controller.KafkaController.ActiveControllerCount",
"pointInTime": true,
"temporal": true
},
... View more
05-16-2016
03:30 PM
1 Kudo
I'm looking for a way to integrate some of the Kafka JMX metrics into Ambari monitoring and alerting if possible. The installation I will be working with is HDP 2.3.4, but at the moment I'm looking at the 2.4 sandbox. In the sandbox, I see these two files which are very similar: /var/lib/ambari-server/resources/stacks/HDP/2.3/services/KAFKA/metrics.json /var/lib/ambari-server/resources/common-services/KAFKA/0.8.1.2.2/metrics.json They appear to be for collecting JMX metrics, but I'm not sure how to take advantage of this. Is it possible? Thanks
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Kafka