Re: Gora-Mongodb auth mechanism for SCRAM-SHA-1

2016-12-11 Thread Madhawa Kasun Gunasekara
Hi Alfonso,

I have added the fix with https://github.com/apache/gora/pull/90
and also created a jira [1] for tracking as well.

I have added an additional property to specify authentication mechanism
gora.mongodb.authentication.type
and added all the supported authentication mechanisms [2] as well.

[1] https://issues.apache.org/jira/browse/GORA-498
[2]
http://mongodb.github.io/mongo-java-driver/3.4/driver/tutorials/authentication/

Thanks,
Madhawa

Madhawa

On Sat, Dec 10, 2016 at 10:29 PM, Alfonso Nishikawa <
alfonso.nishik...@gmail.com> wrote:

> Hi, Shaharia.
>
> I don't know much about MongoDB, but taking a look at MongoStore [1] and
> Mongo documentation [2] I suspect that there is not a way at this moment.
> But, I read in .createCredential() documentation that it states at [3]:
>
> *"Creates a MongoCredential instance with an unspecified mechanism. The
> client will negotiate the best mechanism based on the version of the server
> that the client is authenticating to. If the server version is 3.0 or
> higher, the driver will authenticate using the SCRAM-SHA-1 mechanism.
> Otherwise, the driver will authenticate using the MONGODB_CR mechanism."*
>
> so it should be working. If it does not work, I don't know why :\
>
> In the meantime, if you need SCRAM-SHA-1 and will not use MONGODB-CR, you
> can try to modify the line at [1] to use .createScramSha1Credential
> 
> ()and 'mvn install' it.
>
> [1] - https://github.com/apache/gora/blob/master/gora-mongodb/
> src/main/java/org/apache/gora/mongodb/store/MongoStore.java#L156
> [2] - http://api.mongodb.com/java/current/com/mongodb/MongoCredential.html
> [3] - http://api.mongodb.com/java/current/com/mongodb/
> MongoCredential.html#createCredential-java.lang.
> String-java.lang.String-char:A-
>
> Or let's wait until someone with more knowledge answers :)
>
> Regards,
>
> Alfonso Nishikawa
>
>
> 2016-12-10 12:55 GMT-01:00 Shaharia Azam :
>
>> Hello All,
>> MongoDB has 2 types of Authentication Mechanism.
>>
>> Is there any way to define authMechanism in Gora Mongodb? Currently it
>> works well only for MONGODB-CR. So what about SCRAM-SHA-1?
>>
>> Thanks,
>> Shaharia
>>
>>
>


[jira] [Comment Edited] (GORA-498) Adding MongoDB Authetications

2016-12-11 Thread Madhawa Gunasekara (JIRA)

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

Madhawa Gunasekara edited comment on GORA-498 at 12/11/16 10:42 AM:


sent the fix with https://github.com/apache/gora/pull/90 pull request. I think 
we should document this properly.


was (Author: madhawa):
sent the fix with https://github.com/apache/gora/pull/90 pull request.

> Adding MongoDB Authetications
> -
>
> Key: GORA-498
> URL: https://issues.apache.org/jira/browse/GORA-498
> Project: Apache Gora
>  Issue Type: Improvement
>  Components: gora-mongodb
>Reporter: Madhawa Gunasekara
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (GORA-497) Migrate CassandraThrift to CQL

2016-12-11 Thread Alfonso Nishikawa (JIRA)

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

Alfonso Nishikawa commented on GORA-497:


Commented by Madhawa at dev@:

{quote}Hector has been no longer used in Cassandra community. Community has 
been migrated to CQL (Cassandra Query Language), which is very much similar to 
SQL. and also currently Gora-Cassandra component is not compatible with 
Cassandra database servers which use CQL 3,4 versions.

CQL performance is much better than thrift (Hector) 
[http://www.datastax.com/dev/blog/cassandra-2-1-now-over-50-faster].{quote}

> Migrate CassandraThrift to CQL 
> ---
>
> Key: GORA-497
> URL: https://issues.apache.org/jira/browse/GORA-497
> Project: Apache Gora
>  Issue Type: Improvement
>  Components: gora-cassandra
>Reporter: Madhawa Gunasekara
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [Cassandra Store] Need to migrate to CQL Interface

2016-12-11 Thread Alfonso Nishikawa
Hi, Madhawa,

What you tell is very interesting. Then, it seems we should shift. Thank
you!

Regards,

Alfonso Nishikawa

2016-12-11 7:39 GMT-01:00 Madhawa Kasun Gunasekara :

> Hi Alfonso,
>
> Hector has been no longer used in Cassandra community. Community has been
> migrated to CQL (Cassandra Query Language), which is very much similar to
> SQL. and also currently Gora-Cassandra component is not compatible with
> Cassandra database servers which use CQL 3,4 versions.
>
> CQL performance is much better than thrift (Hector) [1]. I created jira
> issue for this task [2] as well.
>
> [1] http://www.datastax.com/dev/blog/cassandra-2-1-now-over-50-faster
> [2] https://issues.apache.org/jira/browse/GORA-497
>
> Thanks,
> Madhawa
>
> Madhawa
>
> On Sat, Dec 10, 2016 at 9:55 PM, Alfonso Nishikawa <
> alfonso.nishik...@gmail.com> wrote:
>
>> Hi, Madhawa.
>>
>> I don't know much about Cassandra :( but I think I read time ago about
>> some comment about the benefits of being capable of swapping the library.
>> Would be very handy to what you tell.
>>
>> Renato, was there an issue about that?
>>
>> Regards,
>>
>> Alfonso Nishikawa
>>
>>
>>
>>
>> 2016-12-10 2:56 GMT-01:00 Madhawa Kasun Gunasekara :
>>
>>> Hi Gora Devs,
>>>
>>> As you all know,  Hector is not supported for the latest cassandra
>>> releases. Shall we migrate into CQL interface. WDYT ?? I would like to work
>>> on this task. Let me know your opinions as well.
>>>
>>> Thanks,
>>> Madhawa
>>>
>>
>>
>


[jira] [Commented] (GORA-498) Adding MongoDB Authetications

2016-12-11 Thread Madhawa Gunasekara (JIRA)

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

Madhawa Gunasekara commented on GORA-498:
-

sent the fix with https://github.com/apache/gora/pull/90 pull request.

> Adding MongoDB Authetications
> -
>
> Key: GORA-498
> URL: https://issues.apache.org/jira/browse/GORA-498
> Project: Apache Gora
>  Issue Type: Improvement
>  Components: gora-mongodb
>Reporter: Madhawa Gunasekara
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (GORA-498) Adding MongoDB Authetications

2016-12-11 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on GORA-498:
-

GitHub user madhawa-gunasekara opened a pull request:

https://github.com/apache/gora/pull/90

GORA-498 Adding mongodb authentications



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/madhawa-gunasekara/gora mongodb

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/gora/pull/90.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #90


commit 5846373ed25d32a37053853ae16265b7e560eeb1
Author: madhawa 
Date:   2016-12-11T09:25:07Z

GORA-498 Adding mongodb authentications




> Adding MongoDB Authetications
> -
>
> Key: GORA-498
> URL: https://issues.apache.org/jira/browse/GORA-498
> Project: Apache Gora
>  Issue Type: Improvement
>  Components: gora-mongodb
>Reporter: Madhawa Gunasekara
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[GitHub] gora pull request #90: GORA-498 Adding mongodb authentications

2016-12-11 Thread madhawa-gunasekara
GitHub user madhawa-gunasekara opened a pull request:

https://github.com/apache/gora/pull/90

GORA-498 Adding mongodb authentications



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/madhawa-gunasekara/gora mongodb

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/gora/pull/90.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #90


commit 5846373ed25d32a37053853ae16265b7e560eeb1
Author: madhawa 
Date:   2016-12-11T09:25:07Z

GORA-498 Adding mongodb authentications




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (GORA-498) Adding MongoDB Authetications

2016-12-11 Thread Madhawa Gunasekara (JIRA)
Madhawa Gunasekara created GORA-498:
---

 Summary: Adding MongoDB Authetications
 Key: GORA-498
 URL: https://issues.apache.org/jira/browse/GORA-498
 Project: Apache Gora
  Issue Type: Improvement
  Components: gora-mongodb
Reporter: Madhawa Gunasekara






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Re: [Cassandra Store] Need to migrate to CQL Interface

2016-12-11 Thread Madhawa Kasun Gunasekara
Hi Alfonso,

Hector has been no longer used in Cassandra community. Community has been
migrated to CQL (Cassandra Query Language), which is very much similar to
SQL. and also currently Gora-Cassandra component is not compatible with
Cassandra database servers which use CQL 3,4 versions.

CQL performance is much better than thrift (Hector) [1]. I created jira
issue for this task [2] as well.

[1] http://www.datastax.com/dev/blog/cassandra-2-1-now-over-50-faster
[2] https://issues.apache.org/jira/browse/GORA-497

Thanks,
Madhawa

Madhawa

On Sat, Dec 10, 2016 at 9:55 PM, Alfonso Nishikawa <
alfonso.nishik...@gmail.com> wrote:

> Hi, Madhawa.
>
> I don't know much about Cassandra :( but I think I read time ago about
> some comment about the benefits of being capable of swapping the library.
> Would be very handy to what you tell.
>
> Renato, was there an issue about that?
>
> Regards,
>
> Alfonso Nishikawa
>
>
>
>
> 2016-12-10 2:56 GMT-01:00 Madhawa Kasun Gunasekara :
>
>> Hi Gora Devs,
>>
>> As you all know,  Hector is not supported for the latest cassandra
>> releases. Shall we migrate into CQL interface. WDYT ?? I would like to work
>> on this task. Let me know your opinions as well.
>>
>> Thanks,
>> Madhawa
>>
>
>


[jira] [Created] (GORA-497) Migrate CassandraThrift to CQL

2016-12-11 Thread Madhawa Gunasekara (JIRA)
Madhawa Gunasekara created GORA-497:
---

 Summary: Migrate CassandraThrift to CQL 
 Key: GORA-497
 URL: https://issues.apache.org/jira/browse/GORA-497
 Project: Apache Gora
  Issue Type: Improvement
  Components: gora-cassandra
Reporter: Madhawa Gunasekara






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)