You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Liu (JIRA)" <ji...@apache.org> on 2012/06/15 22:37:42 UTC

[jira] [Created] (CASSANDRA-4346) Hive autocreate C* tables/other app instead of CLI create CF - need to restart C* CLI to see new CF's created in existing Keyspaces

Alex Liu created CASSANDRA-4346:
-----------------------------------

             Summary: Hive autocreate C* tables/other app instead of CLI create CF - need to restart C* CLI to see new CF's created in existing Keyspaces
                 Key: CASSANDRA-4346
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4346
             Project: Cassandra
          Issue Type: Bug
            Reporter: Alex Liu
            Priority: Minor


Cassandra CliClient class keep a local cache of

private final Map<String, KsDef> keyspacesMap = new HashMap<String, KsDef>();

which is refreshed each time add new keyspace, login, add new cf through the CLI, any other meta data changes not made by CLI don't refresh the local cache.

we can add one new command to CLI, refrech the meta data of the keyspace

or remove the local cache, so that any other app changes the meta data will show in CLI real time


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-4346) Hive autocreate C* tables/other app instead of CLI create CF - need to restart C* CLI to see new CF's created in existing Keyspaces

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295994#comment-13295994 ] 

Jonathan Ellis commented on CASSANDRA-4346:
-------------------------------------------

specifically, you can simply issue a describe to force a refresh
                
> Hive autocreate C* tables/other app instead of CLI create CF - need to restart C* CLI to see new CF's created in existing Keyspaces
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4346
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4346
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Alex Liu
>            Priority: Minor
>
> Cassandra CliClient class keep a local cache of
> private final Map<String, KsDef> keyspacesMap = new HashMap<String, KsDef>();
> which is refreshed each time add new keyspace, login, add new cf through the CLI, any other meta data changes not made by CLI don't refresh the local cache.
> we can add one new command to CLI, refrech the meta data of the keyspace
> or remove the local cache, so that any other app changes the meta data will show in CLI real time

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-4346) Hive autocreate C* tables/other app instead of CLI create CF - need to restart C* CLI to see new CF's created in existing Keyspaces

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-4346.
---------------------------------------

    Resolution: Duplicate

done in CASSANDRA-4052
                
> Hive autocreate C* tables/other app instead of CLI create CF - need to restart C* CLI to see new CF's created in existing Keyspaces
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4346
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4346
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Alex Liu
>            Priority: Minor
>
> Cassandra CliClient class keep a local cache of
> private final Map<String, KsDef> keyspacesMap = new HashMap<String, KsDef>();
> which is refreshed each time add new keyspace, login, add new cf through the CLI, any other meta data changes not made by CLI don't refresh the local cache.
> we can add one new command to CLI, refrech the meta data of the keyspace
> or remove the local cache, so that any other app changes the meta data will show in CLI real time

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira