Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unusable RowKey after $cassandra->set() #22

Closed
skywaymsn opened this issue Aug 31, 2012 · 3 comments
Closed

Unusable RowKey after $cassandra->set() #22

skywaymsn opened this issue Aug 31, 2012 · 3 comments

Comments

@skywaymsn
Copy link

After calling set() I get a RowKey name that is useless! Adding more columns in the same manner adds them to the same row so I'm thinking this must be an encoding problem, but who's?

    $cassandra->set(
        'SomeColumnFamily.ColAssetMetricGUID',
        array(
            'localhost::cpu_sys' => $myhost.'::localhost::cpu_sys'
        )
    );

[default@MyApp] list SomeColumnFamily;
Using default limit of 100

Using default column limit of 100

RowKey: 436f6c41737365744d657472696347554944
=> (column=localhost::cpu_sys, value=hostname::localhost::cpu_sys, timestamp=1346448764354892)

1 Row Returned.
Elapsed time: 2 msec(s).

@skywaymsn
Copy link
Author

Again, I was premature. Problem solved on my end.

@kallaspriit
Copy link
Owner

Good but what was the problem?

@skywaymsn
Copy link
Author

I failed to assume key type :-) n00b error. My default display encoding was ASCII, but everything I had in Cassandra I did with UTF8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants