so what is the IP address of that interface? attempt to use cqlsh with
whatever that address is, otherwise it will default to localhost.

On Mon, Dec 22, 2014 at 8:55 PM, Kai Wang <dep...@gmail.com> wrote:

> I might misread the comment but I thought I could only set rpc_interface
> or rpc_address but not both. So I didn't set rpc_addresa. Will double check
> tomorrow. Thanks.
> On Dec 22, 2014 9:17 PM, "Ryan Svihla" <rsvi...@datastax.com> wrote:
>
>> if this helps..what did you change rpc_address to?
>>
>> On Mon, Dec 22, 2014 at 8:15 PM, Ryan Svihla <rsvi...@datastax.com>
>> wrote:
>>
>>> right that's localhost, you have to change it to match the ip of
>>> whatever you changed rpc_address too
>>>
>>> On Mon, Dec 22, 2014 at 8:07 PM, Kai Wang <dep...@gmail.com> wrote:
>>>
>>>> on the guest where C* is installed, I run cqlsh without any argument.
>>>> When I enabled rpc_interface, cqlsh returned can't connect
>>>> 127.0.0.1:9042.
>>>>
>>>> On Mon, Dec 22, 2014 at 9:01 PM, Ryan Svihla <rsvi...@datastax.com>
>>>> wrote:
>>>>
>>>>> totally depends on how the implementation is handled in virtualbox,
>>>>> I'm assuming you're connecting to an IP that makes sense on the guest (ie
>>>>> nodetool -h 192.168.1.100 and cqlsh 192.168.1.100, replace that ip with
>>>>> whatever what you expect)?
>>>>>
>>>>> On Mon, Dec 22, 2014 at 7:58 PM, Kai Wang <dep...@gmail.com> wrote:
>>>>>
>>>>>> Ryan,
>>>>>>
>>>>>> Actually after I made the change, I was able to connect to C* from
>>>>>> host but not from guest anymore. Is this expected?
>>>>>>
>>>>>> On Mon, Dec 22, 2014 at 8:53 PM, Kai Wang <dep...@gmail.com> wrote:
>>>>>>
>>>>>>> Ryan,
>>>>>>>
>>>>>>> it works! I saw this new config mentioned in Cassandra summit 2014
>>>>>>> but didn't realize it applied in my case.
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> On Mon, Dec 22, 2014 at 4:43 PM, Ryan Svihla <rsvi...@datastax.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> what is rpc_address set to in cassandra.yaml? my gut is localhost,
>>>>>>>> set it to the interface that communicates between host and guest.
>>>>>>>>
>>>>>>>> On Mon, Dec 22, 2014 at 3:38 PM, Kai Wang <dep...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I installed C* in virtualbox via vagrant. Both 9160 and 9042 ports
>>>>>>>>> are forwarded from guest to host. I can telnet to those two ports 
>>>>>>>>> from host
>>>>>>>>> to guest. But from my host, I can't connect to C* using cassandra-cli 
>>>>>>>>> or
>>>>>>>>> cqlsh. My host is Windows 7 64bit and guest is CentOS 6.5.
>>>>>>>>>
>>>>>>>>> Is there anything special about connecting to a C* instance inside
>>>>>>>>> virtualbox?
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> [image: datastax_logo.png] <http://www.datastax.com/>
>>>>>>>>
>>>>>>>> Ryan Svihla
>>>>>>>>
>>>>>>>> Solution Architect
>>>>>>>>
>>>>>>>> [image: twitter.png] <https://twitter.com/foundev> [image:
>>>>>>>> linkedin.png] <http://www.linkedin.com/pub/ryan-svihla/12/621/727/>
>>>>>>>>
>>>>>>>> DataStax is the fastest, most scalable distributed database
>>>>>>>> technology, delivering Apache Cassandra to the world’s most innovative
>>>>>>>> enterprises. Datastax is built to be agile, always-on, and predictably
>>>>>>>> scalable to any size. With more than 500 customers in 45 countries, 
>>>>>>>> DataStax
>>>>>>>> is the database technology and transactional backbone of choice for the
>>>>>>>> worlds most innovative companies such as Netflix, Adobe, Intuit, and 
>>>>>>>> eBay.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> [image: datastax_logo.png] <http://www.datastax.com/>
>>>>>
>>>>> Ryan Svihla
>>>>>
>>>>> Solution Architect
>>>>>
>>>>> [image: twitter.png] <https://twitter.com/foundev> [image:
>>>>> linkedin.png] <http://www.linkedin.com/pub/ryan-svihla/12/621/727/>
>>>>>
>>>>> DataStax is the fastest, most scalable distributed database
>>>>> technology, delivering Apache Cassandra to the world’s most innovative
>>>>> enterprises. Datastax is built to be agile, always-on, and predictably
>>>>> scalable to any size. With more than 500 customers in 45 countries, 
>>>>> DataStax
>>>>> is the database technology and transactional backbone of choice for the
>>>>> worlds most innovative companies such as Netflix, Adobe, Intuit, and eBay.
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> [image: datastax_logo.png] <http://www.datastax.com/>
>>>
>>> Ryan Svihla
>>>
>>> Solution Architect
>>>
>>> [image: twitter.png] <https://twitter.com/foundev> [image: linkedin.png]
>>> <http://www.linkedin.com/pub/ryan-svihla/12/621/727/>
>>>
>>> DataStax is the fastest, most scalable distributed database technology,
>>> delivering Apache Cassandra to the world’s most innovative enterprises.
>>> Datastax is built to be agile, always-on, and predictably scalable to any
>>> size. With more than 500 customers in 45 countries, DataStax is the
>>> database technology and transactional backbone of choice for the worlds
>>> most innovative companies such as Netflix, Adobe, Intuit, and eBay.
>>>
>>>
>>
>>
>> --
>>
>> [image: datastax_logo.png] <http://www.datastax.com/>
>>
>> Ryan Svihla
>>
>> Solution Architect
>>
>> [image: twitter.png] <https://twitter.com/foundev> [image: linkedin.png]
>> <http://www.linkedin.com/pub/ryan-svihla/12/621/727/>
>>
>> DataStax is the fastest, most scalable distributed database technology,
>> delivering Apache Cassandra to the world’s most innovative enterprises.
>> Datastax is built to be agile, always-on, and predictably scalable to any
>> size. With more than 500 customers in 45 countries, DataStax is the
>> database technology and transactional backbone of choice for the worlds
>> most innovative companies such as Netflix, Adobe, Intuit, and eBay.
>>
>>


-- 

[image: datastax_logo.png] <http://www.datastax.com/>

Ryan Svihla

Solution Architect

[image: twitter.png] <https://twitter.com/foundev> [image: linkedin.png]
<http://www.linkedin.com/pub/ryan-svihla/12/621/727/>

DataStax is the fastest, most scalable distributed database technology,
delivering Apache Cassandra to the world’s most innovative enterprises.
Datastax is built to be agile, always-on, and predictably scalable to any
size. With more than 500 customers in 45 countries, DataStax is the
database technology and transactional backbone of choice for the worlds
most innovative companies such as Netflix, Adobe, Intuit, and eBay.

Reply via email to