使用spark 访问cassandra 遇到下面的问题:
User class threw exception: com.datastax.driver.core.exceptions.UnauthorizedException: User test_for_js has no SELECT permission on <table system.size_estimates> or any of its parents
从字面意思上看,是没有 system.size_estimates
表的读权限,我们加一下就可以了
grant select on keyspace system.size_estimates to test_for_js;
当时为什么还需要读这个表呢,在github上找到了个答案
what-does-inputsplitsize_in_mb-use-to-determine-size
用来分隔表的时候做参考用的,当作知识点记下来吧