Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-16 Thread Michael G. Noll
Many thanks for the clarification, Jun! Michael > On 16.09.2014, at 02:11, Jun Rao wrote: > > Yes, that description is not precise. We do allow dots in general. However, > a topic can't be just "." or "..". > > Thanks, > > Jun > > On Mon, Sep 15, 2014 at 9:31 AM, Michael G. Noll < > michael

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-15 Thread Otis Gospodnetic
Hi Bhavesh, Yes, if you look at https://issues.apache.org/jira/browse/KAFKA-1481 it describes this sort of a problem with various delimiters used by Kafka. As Jun suggested, I'll start a new thread and try to clearly explain the problem. Otis -- Monitoring * Alerting * Anomaly Detection * Central

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-15 Thread Bhavesh Mistry
Hi Jun, I also wanted to highlight the implication of having a dot "." as part of the topic and client.id with ".". Both topic name and client id need rule enforcement. JMX Bean names are not correct: eg: I have topics called "topic.dot" and client.id as "my.client". JMX Bean name is: ka

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-15 Thread Jun Rao
Yes, that description is not precise. We do allow dots in general. However, a topic can't be just "." or "..". Thanks, Jun On Mon, Sep 15, 2014 at 9:31 AM, Michael G. Noll < michael+st...@michael-noll.com> wrote: > Ah -- I only tested with dots "." > > However, haven't you said earlier in this

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-15 Thread Michael G. Noll
Ah -- I only tested with dots "." However, haven't you said earlier in this thread that only "-" and "_" are allowed as special chars? This would exclude dots, although in the error message below they (dots) are said to be fine. Is this a bug or a feature? ;-) --Michael > On 14.09.2014, at

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-14 Thread Jun Rao
Actually, we do give you an error if an invalid topic is created through CLI. When we add a create topic api, we can return the correct error code too. bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic="te+dd" --partitions 1 --replication-factor 1 Error while executing topic command

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-14 Thread Michael G. Noll
Wouldn't it be helpful to throw an error or a warning if the user tries to create a topic with an invalid name? Currently neither the API nor the CLI tools inform you that you are naming a topic in a way you shouldn't. And as Otis pointed out elsewhere in this thread this ties back into the JMX/M

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-10 Thread Jun Rao
We actually don't allow "." in the topic name. Topic name can be alpha-numeric plus "-" and "_". Thanks, Jun On Tue, Sep 9, 2014 at 6:29 PM, Bhavesh Mistry wrote: > Thanks, I was using without JMX. I will go through doc. But how about > Topic or Metric name Topic Name Convention or Metric Na

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-09 Thread Bhavesh Mistry
Thanks, I was using without JMX. I will go through doc. But how about Topic or Metric name Topic Name Convention or Metric Name Convention ? The dot notation with topic having a ".". Any future plan to enforce some stand rules. Thanks, Bhavesh On Tue, Sep 9, 2014 at 3:38 PM, Jay Kreps wrote

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-09 Thread Otis Gospodnetic
Hi, > I have topic name with “.” So, it is hard to distinguish metric name and topic If your topics or hosts have dashes or underscores or your topic has dots you will have trouble extracting things from JMX. We provided a patch to change delimiter character in MBeans and are hoping it gets inc

Re: Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-09 Thread Jay Kreps
Hi Bhavesh, Each of those JMX attributes comes with documentation. If you open up jconsole and attach to a jvm running the consumer you should be able to read the descriptions for each attribute. -Jay On Tue, Sep 9, 2014 at 2:07 PM, Bhavesh Mistry wrote: > Kafka Team, > > Can you please let me

Need Document and Explanation Of New Metrics Name in New Java Producer on Kafka Trunk

2014-09-09 Thread Bhavesh Mistry
Kafka Team, Can you please let me know what each of following Metrics means ? Some of them are obvious, but some are hard to understand. My Topic name is *TOPIC_NAME*. can we enforce a Topic Name Convention or Metric Name Convention. Because in previous version of Kafka, we have similar issue