Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A462193FE for ; Wed, 16 Mar 2016 15:39:34 +0000 (UTC) Received: (qmail 73860 invoked by uid 500); 16 Mar 2016 15:39:33 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 73824 invoked by uid 500); 16 Mar 2016 15:39:33 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 73813 invoked by uid 99); 16 Mar 2016 15:39:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2016 15:39:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 97D592C1F62 for ; Wed, 16 Mar 2016 15:39:33 +0000 (UTC) Date: Wed, 16 Mar 2016 15:39:33 +0000 (UTC) From: "Yuki Morishita (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-4763) SSTableLoader shouldn't get keyspace from path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-4763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15197521#comment-15197521 ] Yuki Morishita commented on CASSANDRA-4763: ------------------------------------------- After CASSANDRA-6962, SSTable file does not have keyspace and table name anymore. So inferring keyspace and table name from file name is not possible. But there maybe a use case that users want to load SSTables to different keyspace and table(of course, this may fail because of incompatibility). Then, specifying keyspace and table name through command line option maybe useful. > SSTableLoader shouldn't get keyspace from path > ---------------------------------------------- > > Key: CASSANDRA-4763 > URL: https://issues.apache.org/jira/browse/CASSANDRA-4763 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Affects Versions: 1.2.0 beta 1 > Reporter: Nick Bailey > Assignee: Yuki Morishita > Priority: Minor > Fix For: 2.1.x > > > SSTableLoader currently gets the keyspace it is going to load to from the path of the directoy of sstables it is loading. This isn't really documented (or I didn't see it), but also isn't really a good way of doing it in general. > {noformat} > this.keyspace = directory.getParentFile().getName(); > {noformat} > We should probably just let users pass the name in. If you are loading a snapshot the file names will have the keyspace which is slightly better but people manually creating their own sstables might not format them the same. -- This message was sent by Atlassian JIRA (v6.3.4#6332)