Access hdfs data from Matlab

回眸只為那壹抹淺笑 提交于 2020-01-25 04:31:06

问题


we have installed Hadoop 2.5.1 on two Linux (Ubuntu) computers. One computer serves as a name node, the other one as a data node.

Now we want to access the data from a third computer, where Matlab 2014b is installed on a Windows operating system.

We have shared the folder of the Hadoop installation on our Ubuntu machine and set the HADOOP_PREFIX environment variable accordingly within Matlab on our Windows computer.

setenv('HADOOP_PREFIX','\\\myserverip\hadoop');

Now we create a datastore object according to the Matlab documentation:

file = 'hdfs://myserverip:portnumber/foldername/data.csv';
ds = datastore(file);

However, we always get the following error

Error using datastore (line 70)
Failure occured while trying to resolve path 'hdfs://myserverip:portnumber/foldername/data.csv'.

Do you have any ideas?

来源:https://stackoverflow.com/questions/26337283/access-hdfs-data-from-matlab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!