You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "kaveh minooie (JIRA)" <ji...@apache.org> on 2013/08/13 01:29:47 UTC

[jira] [Comment Edited] (GORA-269) Add parameter for setting port used in the Cassandra Module

    [ https://issues.apache.org/jira/browse/GORA-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737496#comment-13737496 ] 

kaveh minooie edited comment on GORA-269 at 8/12/13 11:27 PM:
--------------------------------------------------------------

Actually we don't have the port number in gora-cassandra-mapping.xml. right now as of commit d4deef989ffc (2.x) the gora.properties has this line:
#############################
# CassandraStore properties #
#############################

# gora.cassandrastore.servers=localhost:9160

and gora-cassandra-mapping.xml has this:
 <keyspace name="webpage" cluster="Test Cluster" host="localhost">
and
 <keyspace name="host" cluster="Test Cluster" host="localhost">

and that is why I thought that I wouldn't need the port number in mapping in the first place.

Now that being said, I don't think making port numbers mandatory is the correct solution. the default behaviour for really any software config file is to assume that the default port is implicitly there if nothing else is explicitly mentioned, and I think we should stick to that

p.s.  the commit version and the file content are from nutch which uses gora 3. I don't know what is in the gora's trunk. I douldn't find any of these file in there. sorry about this, I am new here :)
                
      was (Author: kaveh):
    Actually we don't have the port number in gora-cassandra-mapping.xml. right now as of commit d4deef989ffc (2.x) the gora.properties has this line:
#############################
# CassandraStore properties #
#############################

# gora.cassandrastore.servers=localhost:9160

and gora-cassandra-mapping.xml has this:
 <keyspace name="webpage" cluster="Test Cluster" host="localhost">
and
 <keyspace name="host" cluster="Test Cluster" host="localhost">

and that is why I thought that I wouldn't need the port number in mapping in the first place.

Now that being said, I don't think making port numbers mandatory is the correct solution. the default behaviour for really any software config file is to assume that the default port is implicitly there if nothing else is explicitly mentioned, and I think we should stick to that
                  
> Add parameter for setting port used in the Cassandra Module
> -----------------------------------------------------------
>
>                 Key: GORA-269
>                 URL: https://issues.apache.org/jira/browse/GORA-269
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: gora-cassandra
>    Affects Versions: 0.4
>            Reporter: Renato Javier MarroquĂ­n Mogrovejo
>            Priority: Minor
>
> We should add the port used when connecting to a Cassandra cluster. Right now in both files (gora-mapping and gora-properties) we have to set the server name along with the port, but this is sometimes confusing for users. 
>          gora.cassandrastore.servers=myserver:9160
> So adding:
>          gora.cassandrastore.port
> and:
>          PORT 
> inside the mapping file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira