Cassandra thrift frameSize issue

2016-07-19 Thread Saurabh Kumar
Hi ,

I am trying run query over Cassandra cluster using JDBC connection using
RJdbc library of R language.  I am
getting org.apache.thrift.transport.TTransportException excetion as
mentioned in atttached pic.

I increased frame size into cassandra.yaml like :

thrift_framed_transport_size_in_mb: 700
thrift_max_message_length_in_mb: 730


Still getting same error.

Please help me out to resolve this issue.



Thanks in advance.


Regards,
Saurabh


Re: Cassandra metrics custom reporter

2016-07-19 Thread Branton Davis
This isn't a direct answer to your question, but jolokia (
https://jolokia.org/) may be a useful alternative.  It runs as an agent
attached to your cassandra process and provides a REST API for JMX.

On Tue, Jul 19, 2016 at 11:19 AM, Ricardo Sancho 
wrote:

> Is anyone using a custom reporter to plugin to their own monitoring
> systems?
> ie one that does not use graphite or something for which a reporter
> exists.
>
> Any documentation on plugging this in?
> We have a custom reporter, it's been loaded and we see report method being
> called. But when we iterate the metrics provided as args to the report
> method are empty.
>
> Thanks
>


OpsCenter sending alert emails or posting to a url never succeeded.

2016-07-19 Thread Yuan Fang
Anyone succeeded?



Here is my setting for postUrl.
==
ubuntu@ip-172-31-55-130:/etc/opscenter/event-plugins$ more posturl.conf

[posturl]
enabled=1

# levels can be comma delimited list of any of the following:
# DEBUG,INFO,WARN,ERROR,CRITICAL,ALERT
# If left empty, will listen for all levels
levels=

# clusters is a comma delimited list of cluster names for which
# this alert config will be eligible to run.
# If left empty, this alert will will be called for events on all clusters
clusters=

# the URL to send a HTTP POST to
url=https://alert.victorops.com/integrations/generic*

# Set a username for basic HTTP authorization
#username=foo

# Set a password for basic HTTP authorization
#password=bar

# Set the type of posted data. Available options are 'json' or 'form'
post_type=json

# Fields specified here will override the default event data fields.
#
# They must be formatted as key-value pair, with key and value separated by
# an equals (=). Each pair after the first must be on its own line,
# indented beyond the first line
#
# You may use tokens found within the default event data for or in
# values. For example, some available keys are:
#   cluster, time, level_str, message, target_node, event_source, success,
api_source_ip, user, source_node
# Keys must be encapsulated in {brackets}.
#
#fields=textKey=value
#mixedKey=cluster-{cluster}
#event-msg={message}
message_type=CRITICAL


Slow query date without hour, minute,seconds.

2016-07-19 Thread Yuan Fang
The date column all look like below:
The hour,minute,second: 00:00:00+.
I really want to know when exactly(hour, minute) those slow queries happen.
Does any one know how? Thanks so much!

 node_ip   | date
 172.31.44.252 | 2016-07-18 00:00:00+
 172.31.44.252 | 2016-07-18 00:00:00+ |


Cassandra metrics custom reporter

2016-07-19 Thread Ricardo Sancho
Is anyone using a custom reporter to plugin to their own monitoring
systems?
ie one that does not use graphite or something for which a reporter exists.

Any documentation on plugging this in?
We have a custom reporter, it's been loaded and we see report method being
called. But when we iterate the metrics provided as args to the report
method are empty.

Thanks


CassandraDaemon&

2016-07-19 Thread Stone Fang
Hi All,
there are two questions CassandraDaemon.

1. I do confuse about the EmbededCassandraService.java
think it should provide a CassandraDaemon stop method.find a ticket about
this https://issues.apache.org/jira/browse/CASSANDRA-7595.
but it not accepted in C * 3.x.anyone know why?

2. I have started a cassandradaemon instance with gradle task like this:
  cassandra =new CassandraDaemon();
try {
cassandra.init(null);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
cassandra.completeSetup();
cassandra.startNativeTransport();

it do start,and can connect.
but when the task finished,have not found cassandra instances before run
stop task?
it have deactived,and i can run start cassandra task again.
how to explain this?

thanks
stone