(已解决)RangeError (index): Index out of range: no indices are valid: 0

(已解决)RangeError (index): Index out of range: no indices are valid: 0

使用hive存储数据时遇到以上报错
原因: box.putAt()和box.getAt()只允许获取已经存在的索引,如果要向本来没有内容的index存数据,只能用box.add(),或者box.put( key, value )

猜你喜欢

转载自blog.csdn.net/weixin_52502987/article/details/130082741