我正在尝试通过Neo4j中的apoc库读取hdfs文件系统中的csv文件,并使用以下代码“
<template>
<div :class="'bar ' + (selected ? 'selected animated' : 'default')" @click="select()">The Bar</div>
</template>
<script>
export default{
data: function () { return { selected: false } },
props: {
colorSelected : {default: "orange", type: String},
colorDefault: {default: "orange", type: String},
animDuration: {default: "4.0s", type: String},
},
method: {
select: function() { this.selected = !this.selected;}
}
}
</script>
/* HERE */
<style scoped>
selected: {
color: red,
background-color: var(this.colorSelected)
}
default: {
color: black,
background-color: var(this.colorDefault)
}
animate:{
-webkit-transition: var(animDuration) !important;
-moz-transition: var() !important;
-o-transition: var() !important;
transition: var() !important;
}
</style>
我还为apoc禁用了Neo4j配置,并启用了通过apoc导入文件。所以我在配置文件中加入了以下几行:
CALL apoc.load.csv('hdfs://ipAddrress:port/myFileLocation.csv')
但是我不断收到以下错误:
apoc.import.file.use_neo4j_config=false
apoc.import.file.enabled=true
neo4j apoc扩展内置了依赖项,但是我不知道为什么找不到与hadoop相关的类。有帮助吗?
答案 0 :(得分:0)
经过一番搜索,我从汤姆·盖登斯(Tom Geudens)找到了这个
。目前这是不可能的:CSV文件可以存储在 数据库服务器,然后可以使用file:/// URL访问。 另外,LOAD CSV也支持通过HTTPS访问CSV文件, HTTP和FTP。 您可能可以通过http公开您的hdfs文件系统(然后使用 一个http://网址),否则...不。