[
https://issues.apache.org/jira/browse/CASSANDRA-6927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095675#comment-14095675
]
Paul Pak commented on CASSANDRA-6927:
-------------------------------------
[~jbellis] Ah, good catch. I had to think back a while, but if I recall
correctly I was initially working off of 2.1.0-beta1, which set isLocalDC in
the StreamRateLimiter constructor like this:
{code}
isLocalDC = DatabaseDescriptor.getLocalDataCenter().equals(
DatabaseDescriptor.getEndpointSnitch().getDatacenter(peer));
{code}
which was throwing an NPE because DatabaseDescriptor.getLocalDataCenter() was
returning null. At that time I mistakenly thought Config.isClientMode() was
inversely related to whether a local dc was being used, so I used
isClientMode() to short circuit and bypass the NPE. However, since then I see
that the appropriate null checks were added and that 'is client mode' isn't
related to 'is local dc' as I had originally thought. I'll remove that from the
patch.
> Create a CQL3 based bulk OutputFormat
> -------------------------------------
>
> Key: CASSANDRA-6927
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6927
> Project: Cassandra
> Issue Type: New Feature
> Components: Hadoop
> Reporter: Paul Pak
> Priority: Minor
> Labels: cql3, hadoop
> Attachments: 6927-2.0-branch-v2.txt, trunk-6927-v3.txt,
> trunk-6927-v4.txt, trunk-6927-v5.txt, trunk-6927.txt
>
>
> This is the CQL compatible version of BulkOutputFormat. CqlOutputFormat
> exists, but doesn't write SSTables directly, similar to
> ColumnFamilyOutputFormat for thrift.
--
This message was sent by Atlassian JIRA
(v6.2#6252)