SALT_BUCKETS and Writing

2018-04-04 Thread Noe Detore
New to Phoenix, and looking to use "create table SALT_BUCKETS=". The documentation states "Phoenix provides a way to transparently salt the row key with a salting byte". Is this still done when writing to the table via hbase api or must write using jdbc via phoenix-client.jar?

Re: SALT_BUCKETS and Writing

2018-04-04 Thread Sergey Soldatov
Salt is calculated basing on the hash of the row key and number of buckets on phoenix client side. So it's preferable to use phoenix to write. If you have to use HBase API because of any reason, you need to perform the same calculations (copy/paste the code from Phoenix) Thanks, Sergey On Wed,