Zeppelin + Spark + Neo4j 安装设定

目录

Zeppelin、Spark 使用 Docker 

下载 Neo4j  Community

Scala 

Zeppelin notebook


Zeppelin、Spark 使用 Docker 

下载 Neo4j  Community

Scala 

  • scala.lang.org: A Scala Tutorial for Java Programmers
  •  所有东西都是 Object (数字、符号、function)
  •  没有 static 
  •  Object => singleton class
  •  Unit => like void 
  •  定义 fuction 使用 "def"
  •  function 可以当参数传送
  •  Scala 之于 Java 类似 Typescript 之于 Javascript
  •  可直接 import Java library
  •  "=>" 箭头符号
  • 覆写 function 要加上 "override"
  • // 以下内容尚不明白如何操作
  • "Case Classes and Pattern Matching"
  • 实体化时不需使用 "new"
    • properties 自动建位 get set function
    • default "hashCode", "equals"
    • default "toString" => print "source form"
    • "pattern matching" 
  • "type Environment = String => Int" => 定义 alias
  • "trait"
  • "Genericity" 泛型


Zeppelin notebook

  • Zeppelin 0.10.0 预先安装了 Neo4j Interpreter
  • docker pull apache/zeppelin 会有错误,加上 tag(0.10.0) 可正常下载
  • Interpreter => 概念类似 Linux 的 Shell (ex: bash、csh、ksh)
  • 使用方式:在notebook “%” + Interpreter 名称可进入该 Interpreter (ex: %neo4j 进入neo4j Interpreter)
  • 设定:在notebook右上角的 “anonymouse” => "Interpreter" 可进入
  • 设定 Neo4j Interpreter
  • 下载 Neo4j Spark Connector
  • 设定Spark与Neo4j Connector
    • 进入 Spark Interpreter Section
    • 加入 Dependenices
  • 测试 Neo4j Interpreter
    • 启动 Neo4j
    • 进入 notebook,"Notebook" => "spark1"
    • 进入 neo4j Interpreter,输入 Cypher 语法

     

  • 测试 Spark => Neo4j
    • 使用 Scala 
    • 在预设的 Interpreter 输入 Scale 语法

     

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Graph Algorithms: Practical Examples in Apache Spark and Neo4j By 作者: Mark Needham – Amy E. Hodler ISBN-10 书号: 1492047686 ISBN-13 书号: 9781492047681 Edition 版本: 1 出版日期: 2019-01-04 pages 页数: (217) Discover how graph algorithms can help you leverage the relationships within your data to develop more intelligent solutions and enhance your machine learning models. You’ll learn how graph analytics are uniquely suited to unfold complex structures and reveal difficult-to-find patterns lurking in your data. Whether you are trying to build dynamic network models or forecast real-world behavior, this book illustrates how graph algorithms deliver value—from finding vulnerabilities and bottlenecks to detecting communities and improving machine learning predictions. This practical book walks you through hands-on examples of how to use graph algorithms in Apache Spark and Neo4j—two of the most common choices for graph analytics. Also included: sample code and tips for over 20 practical graph algorithms that cover optimal pathfinding, importance through centrality, and community detection. Learn how graph analytics vary from conventional statistical analysis Understand how classic graph algorithms work, and how they are applied Get guidance on which algorithms to use for different types of questions Explore algorithm examples with working code and sample datasets from Spark and Neo4j See how connected feature extraction can increase machine learning accuracy and precision Walk through creating an ML workflow for link prediction combining Neo4j and Spark

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值