You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Anish (JIRA)" <ji...@apache.org> on 2017/10/13 23:36:00 UTC
[jira] [Updated] (CASSANDRA-13955) NullPointerException when using
CqlBulkOutputFormat
[ https://issues.apache.org/jira/browse/CASSANDRA-13955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anish updated CASSANDRA-13955:
------------------------------
Description:
I am able to insert data of reducers by using CqlOutputFormat. Due to performance reasons (I have large amount of inserts), I want to switch over to CqlBulkOutputFormat. As per the documentation, everything remains same except changing the format for reducers. But I get null pointer exception on line below of CqlBulkRecordWriter
{code}
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
{code}
This is because "conf" is null in DatabaseDescriptor. I don't see any calls where this would get initialized by reducer's CqlBulkOutputFormat
Unfortunately, I could not find any documentation or samples of using CqlBulkOutputFormat.
was:
I am able to insert data of reducers by using CqlOutputFormat. Due to performance reasons (I have large amount of inserts), I want to switch over to CqlBulkOutputFormat. As per the documentation, everything remains same except changing the format for reducers. But I get null pointer exception on line below of CqlBulkRecordWriter
{code}
DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
{code}
This is because "conf" is null in DatabaseDescriptor. I don't see any calls where this would get initialized.
Unfortunately, I could not find any documentation or samples of using CqlBulkOutputFormat.
> NullPointerException when using CqlBulkOutputFormat
> ---------------------------------------------------
>
> Key: CASSANDRA-13955
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13955
> Project: Cassandra
> Issue Type: Bug
> Environment: casandra-all:3.11.0
> Reporter: Anish
>
> I am able to insert data of reducers by using CqlOutputFormat. Due to performance reasons (I have large amount of inserts), I want to switch over to CqlBulkOutputFormat. As per the documentation, everything remains same except changing the format for reducers. But I get null pointer exception on line below of CqlBulkRecordWriter
> {code}
> DatabaseDescriptor.setStreamThroughputOutboundMegabitsPerSec(Integer.parseInt(conf.get(STREAM_THROTTLE_MBITS, "0")));
> {code}
> This is because "conf" is null in DatabaseDescriptor. I don't see any calls where this would get initialized by reducer's CqlBulkOutputFormat
> Unfortunately, I could not find any documentation or samples of using CqlBulkOutputFormat.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org