Re: Using Thrift

2012-04-02 Thread Dave Brosius

For a thrift client, you need the following jars at a minimum

apache-cassandra-clientutil-*.jar
apache-cassandra-thrift-*.jar
libthrift-*.jar
slf4j-api-*.jar
slf4j-log4j12-*.jar

all of these jars can be found in the cassandra distribution.



On 04/02/2012 07:40 AM, Rishabh Agrawal wrote:


Any suggestions

*From:*Rishabh Agrawal
*Sent:* Monday, April 02, 2012 4:42 PM
*To:* user@cassandra.apache.org
*Subject:* Using Thrift

Hello,

I have just started exploring Cassandra from java side and using wish 
to use thrift as my api. The problem is whenever is I try to compile 
my java code I get following error :


package org.slf4j does not exist

Can anyone help me with this.

Thanks and Regards

Rishabh Agrawal




Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. 
Know more about our Big Data quick-start program at the event.


New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis 
On-premise' available at http://bit.ly/z6zT4L.



NOTE: This message may contain information that is confidential, 
proprietary, privileged or otherwise protected by law. The message is 
intended solely for the named addressee. If received in error, please 
destroy and notify the sender. Any use of this email is prohibited 
when received in error. Impetus does not represent, warrant and/or 
guarantee, that the integrity of this communication has been 
maintained nor that the communication is free of errors, virus, 
interception or interference.





Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. 
Know more about our Big Data quick-start program at the event.


New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis 
On-premise' available at http://bit.ly/z6zT4L.



NOTE: This message may contain information that is confidential, 
proprietary, privileged or otherwise protected by law. The message is 
intended solely for the named addressee. If received in error, please 
destroy and notify the sender. Any use of this email is prohibited 
when received in error. Impetus does not represent, warrant and/or 
guarantee, that the integrity of this communication has been 
maintained nor that the communication is free of errors, virus, 
interception or interference.




RE: Using Thrift

2012-04-02 Thread Rishabh Agrawal
I didn't fine slf4j files in distribution. So I downloaded them can you help me 
how to configure it.

From: Dave Brosius [mailto:dbros...@mebigfatguy.com]
Sent: Monday, April 02, 2012 6:28 PM
To: user@cassandra.apache.org
Subject: Re: Using Thrift

For a thrift client, you need the following jars at a minimum

apache-cassandra-clientutil-*.jar
apache-cassandra-thrift-*.jar
libthrift-*.jar
slf4j-api-*.jar
slf4j-log4j12-*.jar

all of these jars can be found in the cassandra distribution.



On 04/02/2012 07:40 AM, Rishabh Agrawal wrote:
Any suggestions

From: Rishabh Agrawal
Sent: Monday, April 02, 2012 4:42 PM
To: user@cassandra.apache.orgmailto:user@cassandra.apache.org
Subject: Using Thrift

Hello,

I have just started exploring Cassandra from java side and using wish to use 
thrift as my api. The problem is whenever is I try to compile my java code I 
get following error :

package org.slf4j does not exist

Can anyone help me with this.

Thanks and Regards
Rishabh Agrawal



Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know more 
about our Big Data quick-start program at the event.

New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis On-premise' 
available at http://bit.ly/z6zT4L.


NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.



Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know more 
about our Big Data quick-start program at the event.

New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis On-premise' 
available at http://bit.ly/z6zT4L.


NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.




Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know more 
about our Big Data quick-start program at the event.

New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis On-premise' 
available at http://bit.ly/z6zT4L.


NOTE: This message may contain information that is confidential, proprietary, 
privileged or otherwise protected by law. The message is intended solely for 
the named addressee. If received in error, please destroy and notify the 
sender. Any use of this email is prohibited when received in error. Impetus 
does not represent, warrant and/or guarantee, that the integrity of this 
communication has been maintained nor that the communication is free of errors, 
virus, interception or interference.


RE: Using Thrift

2012-04-02 Thread Sasha Dolgy
Best to read about maven.  Save you some grief.
On Apr 2, 2012 3:05 PM, Rishabh Agrawal rishabh.agra...@impetus.co.in
wrote:

  I didn’t fine slf4j files in distribution. So I downloaded them can you
 help me how to configure it.



 *From:* Dave Brosius [mailto:dbros...@mebigfatguy.com]
 *Sent:* Monday, April 02, 2012 6:28 PM
 *To:* user@cassandra.apache.org
 *Subject:* Re: Using Thrift



 For a thrift client, you need the following jars at a minimum

 apache-cassandra-clientutil-*.jar
 apache-cassandra-thrift-*.jar
 libthrift-*.jar
 slf4j-api-*.jar
 slf4j-log4j12-*.jar

 all of these jars can be found in the cassandra distribution.



 On 04/02/2012 07:40 AM, Rishabh Agrawal wrote:

 Any suggestions….



 *From:* Rishabh Agrawal
 *Sent:* Monday, April 02, 2012 4:42 PM
 *To:* user@cassandra.apache.org
 *Subject:* Using Thrift



 Hello,



 I have just started exploring Cassandra from java side and using wish to
 use thrift as my api. The problem is whenever is I try to compile my java
 code I get following error :



 “package org.slf4j does not exist”



 Can anyone help me with this.



 Thanks and Regards

 Rishabh Agrawal


  --


 Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know
 more about our Big Data quick-start program at the event.

 New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
 On-premise’ available at http://bit.ly/z6zT4L.


 NOTE: This message may contain information that is confidential,
 proprietary, privileged or otherwise protected by law. The message is
 intended solely for the named addressee. If received in error, please
 destroy and notify the sender. Any use of this email is prohibited when
 received in error. Impetus does not represent, warrant and/or guarantee,
 that the integrity of this communication has been maintained nor that the
 communication is free of errors, virus, interception or interference.


  --


 Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know
 more about our Big Data quick-start program at the event.

 New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
 On-premise’ available at http://bit.ly/z6zT4L.


 NOTE: This message may contain information that is confidential,
 proprietary, privileged or otherwise protected by law. The message is
 intended solely for the named addressee. If received in error, please
 destroy and notify the sender. Any use of this email is prohibited when
 received in error. Impetus does not represent, warrant and/or guarantee,
 that the integrity of this communication has been maintained nor that the
 communication is free of errors, virus, interception or interference.



 --

 Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know
 more about our Big Data quick-start program at the event.

 New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis
 On-premise’ available at http://bit.ly/z6zT4L.


 NOTE: This message may contain information that is confidential,
 proprietary, privileged or otherwise protected by law. The message is
 intended solely for the named addressee. If received in error, please
 destroy and notify the sender. Any use of this email is prohibited when
 received in error. Impetus does not represent, warrant and/or guarantee,
 that the integrity of this communication has been maintained nor that the
 communication is free of errors, virus, interception or interference.



Re: Using Thrift

2012-04-02 Thread Dave Brosius
slf4j is just a logging facade, if you actually want log files, you need 
a logger, say log4j-*.jar in your classpath. Then just configure that 
with a log4j.properties file. That properties file also needs to be on 
the classpath.




On 04/02/2012 09:05 AM, Rishabh Agrawal wrote:


I didn't fine slf4j files in distribution. So I downloaded them can 
you help me how to configure it.


*From:*Dave Brosius [mailto:dbros...@mebigfatguy.com]
*Sent:* Monday, April 02, 2012 6:28 PM
*To:* user@cassandra.apache.org
*Subject:* Re: Using Thrift

For a thrift client, you need the following jars at a minimum

apache-cassandra-clientutil-*.jar
apache-cassandra-thrift-*.jar
libthrift-*.jar
slf4j-api-*.jar
slf4j-log4j12-*.jar

all of these jars can be found in the cassandra distribution.



On 04/02/2012 07:40 AM, Rishabh Agrawal wrote:

Any suggestions

*From:*Rishabh Agrawal
*Sent:* Monday, April 02, 2012 4:42 PM
*To:* user@cassandra.apache.org mailto:user@cassandra.apache.org
*Subject:* Using Thrift

Hello,

I have just started exploring Cassandra from java side and using wish 
to use thrift as my api. The problem is whenever is I try to compile 
my java code I get following error :


package org.slf4j does not exist

Can anyone help me with this.

Thanks and Regards

Rishabh Agrawal




Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. 
Know more about our Big Data quick-start program at the event.


New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis 
On-premise' available at http://bit.ly/z6zT4L.



NOTE: This message may contain information that is confidential, 
proprietary, privileged or otherwise protected by law. The message is 
intended solely for the named addressee. If received in error, please 
destroy and notify the sender. Any use of this email is prohibited 
when received in error. Impetus does not represent, warrant and/or 
guarantee, that the integrity of this communication has been 
maintained nor that the communication is free of errors, virus, 
interception or interference.





Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. 
Know more about our Big Data quick-start program at the event.


New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis 
On-premise' available at http://bit.ly/z6zT4L.



NOTE: This message may contain information that is confidential, 
proprietary, privileged or otherwise protected by law. The message is 
intended solely for the named addressee. If received in error, please 
destroy and notify the sender. Any use of this email is prohibited 
when received in error. Impetus does not represent, warrant and/or 
guarantee, that the integrity of this communication has been 
maintained nor that the communication is free of errors, virus, 
interception or interference.





Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. 
Know more about our Big Data quick-start program at the event.


New Impetus webcast 'Cloud-enabled Performance Testing vis-à-vis 
On-premise' available at http://bit.ly/z6zT4L.



NOTE: This message may contain information that is confidential, 
proprietary, privileged or otherwise protected by law. The message is 
intended solely for the named addressee. If received in error, please 
destroy and notify the sender. Any use of this email is prohibited 
when received in error. Impetus does not represent, warrant and/or 
guarantee, that the integrity of this communication has been 
maintained nor that the communication is free of errors, virus, 
interception or interference.




Re: Using Thrift

2012-04-02 Thread aaron morton
I would recommend starting with a higher level client like Hector or Astyanax 
http://wiki.apache.org/cassandra/ClientOptions

They have *a lot* of features and will make it easier to focus on learning how 
to use Cassandra. Then when you know what you like or do not like about the 
existing clients, try to improve them or write your own. 

Hope that helps. 


-
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 2/04/2012, at 11:12 PM, Rishabh Agrawal wrote:

 Hello,
  
 I have just started exploring Cassandra from java side and using wish to use 
 thrift as my api. The problem is whenever is I try to compile my java code I 
 get following error :
  
 “package org.slf4j does not exist”
  
 Can anyone help me with this.
  
 Thanks and Regards
 Rishabh Agrawal
 
 
 Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know 
 more about our Big Data quick-start program at the event. 
 
 New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis On-premise’ 
 available at http://bit.ly/z6zT4L. 
 
 
 NOTE: This message may contain information that is confidential, proprietary, 
 privileged or otherwise protected by law. The message is intended solely for 
 the named addressee. If received in error, please destroy and notify the 
 sender. Any use of this email is prohibited when received in error. Impetus 
 does not represent, warrant and/or guarantee, that the integrity of this 
 communication has been maintained nor that the communication is free of 
 errors, virus, interception or interference.



Re: Using Thrift

2012-04-02 Thread Hari Prasad Siripuram
I faced the same issue:

You can find the similar issue here.
http://stackoverflow.com/questions/8370365/debugging-bizarre-spring-slf4j-jar-issue

Also, Spring community is acknowledging on the SLF4J Issue here
(commons-logging issue):
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#dependency-management

You can exclude that jar file.

dependency
 groupIdorg.springframework/groupId
 artifactIdspring-context/artifactId
 version3.0.0.RELEASE/version
 scoperuntime/scope
 exclusions
exclusion
   groupIdcommons-logging/groupId
   artifactIdcommons-logging/artifactId
/exclusion
 /exclusions
  /dependency



On Mon, Apr 2, 2012 at 2:32 PM, aaron morton aa...@thelastpickle.com wrote:
 I would recommend starting with a higher level client like Hector
 or Astyanax http://wiki.apache.org/cassandra/ClientOptions

 They have *a lot* of features and will make it easier to focus on learning
 how to use Cassandra. Then when you know what you like or do not like about
 the existing clients, try to improve them or write your own.

 Hope that helps.


 -
 Aaron Morton
 Freelance Developer
 @aaronmorton
 http://www.thelastpickle.com

 On 2/04/2012, at 11:12 PM, Rishabh Agrawal wrote:

 Hello,



 I have just started exploring Cassandra from java side and using wish to use
 thrift as my api. The problem is whenever is I try to compile my java code I
 get following error :



 “package org.slf4j does not exist”



 Can anyone help me with this.



 Thanks and Regards
 Rishabh Agrawal

 

 Impetus to sponsor and exhibit at Structure Data 2012, NY; Mar 21-22. Know
 more about our Big Data quick-start program at the event.

 New Impetus webcast ‘Cloud-enabled Performance Testing vis-à-vis On-premise’
 available at http://bit.ly/z6zT4L.


 NOTE: This message may contain information that is confidential,
 proprietary, privileged or otherwise protected by law. The message is
 intended solely for the named addressee. If received in error, please
 destroy and notify the sender. Any use of this email is prohibited when
 received in error. Impetus does not represent, warrant and/or guarantee,
 that the integrity of this communication has been maintained nor that the
 communication is free of errors, virus, interception or interference.