Open macintux opened 8 years ago
Valid workaround: su to the riak
user before executing the riak-admin command.
(discovered by @binarytemple)
A PR was submitted that should resolve this- see https://github.com/basho/node_package/pull/193
_[posted via JIRA by Greg Cymbalski]_
Packages that demonstrate this change are up at s3://builds.basho.com/nightlies/riak-ts/1/centos-6/
_[posted via JIRA by Greg Cymbalski]_
Fix looks good to me:
[centos@ip-172-31-27-220 ~]$ sudo /usr/sbin/riak-admin bucket-type create testone '{"props":{"table_def":"CREATE TABLE testone (field1 varchar not null, field2 varchar not null, time timestamp not null, PRIMARY KEY((field1, field2, quantum(time, 15, s)), field1, field2, time))"}}' testone created
WARNING: After activating testone, nodes in this cluster can no longer be downgraded to a version of Riak prior to 2.0
_[posted via JIRA by Paul Hagan]_
As reported by a Solaris user on 2.0.7, the fix broke execution on Solaris10:
/opt/riak/sbin/riak: syntax error at line 242:
ESCAPED_ARGS=$' unexpected`
When using TS packages, riak-admin is crippled for defining bucket types because of the need to use
su
to theriak
user.As seen below from
sh -x
, the JSON is not wrapped properly, and the shell complains.