我正在尝试在Ubuntu 16.04上安装hadoop,但是在启动hadoop时会出现以下错误
localhost: ERROR: Cannot set priority of datanode process 32156.
Starting secondary namenodes [it-OptiPlex-3020]
2017-09-18 21:13:48,343 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting resourcemanager
Starting nodemanagers
Run Code Online (Sandbox Code Playgroud)
请有人告诉我为什么我会收到此错误?提前致谢。
我目前正在使用hasStableIdsof recycler 视图,我有以下观察结果:
1) 当hasStableIds = false:
notifyDataSetChanged()调用,它将使所有视图都变脏并再次回收它们,因此将为每个项目调用onCreateViewHolder()和onBindViewHolder()。2) 当hasStableIds = true:
notifyDataSetChanged()调用,它将检查 ids,然后决定是否为 recyclerView 项目创建一个 viewHolder。如果数据集没有改变,那么它只会onBindViewHolder()不再调用onCreateViewHolder()。因此,根据上述行为,我很困惑我们是否应该始终将我们的 recyclerview 与 the 一起使用,hasStableIds = true以便避免再次创建viewholder?或者我们应该在什么特定条件下使用它?