打赏

IntelliJ IDEA(Ultimate版本)的下载、安装和WordCount的初步使用(本地模式和集群模式)

 

 

  不多说,直接上干货!

 

  IntelliJ IDEA号称当前Java开发效率最高的IDE工具。IntelliJ IDEA有两个版本:社区版(Community)和旗舰版(Ultimate)。社区版时免费的、开源的,但功能较少,旗舰版提供了较多的功能,是收费的,可以试用30天。 

  强烈推荐,新手刚入门,可以去用社区版,但是,立马还是用旗舰版,我可是走了弯路,当然,体会到其中的棘手还是很不错!

IDEA Community(社区版)再谈之无奈之下还是去安装社区版

IntelliJ IDEA(Community版本)的下载、安装和WordCount的初步使用(本地模式和集群模式)

 

 

 

 

 

 

 

  1、IntelliJ IDEA(Ultimate)的下载

  2、IntelliJ IDEA(Ultimate)的安装

    3、IntelliJ IDEA(Ultimate)中的scala插件安装

    4、用SBT方式来创建工程 或 选择Scala方式来创建工程

    5、本地模式或集群模式

 

 

 

 我们知道,对于开发而言,IDE是有很多个选择的版本。如我们大部分人经常用的是如下。

Eclipse *版本

 

Eclipse *下载

 

   而我们知道,对于spark的scala开发啊,有为其专门设计的eclipse,Scala IDE for Eclipse

  

 

Scala IDE for Eclipse的下载、安装和WordCount的初步使用(本地模式和集群模式)

  这里,我们知道,spark的开发可以通过IntelliJ IDEA或者Scala IDE for Eclipse,包括来构建spark开发环境和源码阅读环境。由于IntelliJ IDEA对scala的支持更好,所以目前spark开发团队使用IntelliJ IDEA作为开发环境。强烈推荐!

 

 

 

 

 

 

1、IntelliJ IDEA(Ultimate)的下载

下载链接: http://www.jetbrains.com/idea/download/

      一般,我们使用选择免费的社区版就好了,不过Apache的贡献者可以免费获得商业发行版的使用权。但是,在本博文里,我就是要大家安装Ultimate版本,因为,我有办法教大家成功破解并长期使用。

 

 

 

 

 

  直接下载最新版本(当然,你也可以下载历史版本)

 

 

 

 

 

 

 注意:下载IntelliJ IDEA Ultimate的历史版本

我们找历史版本,Windows7下安装IntelliJ IDEA UltimateEdition 2016.1.4(64)。

 

 

 

 

 

 

 

 

 

 2、IntelliJ IDEA(Ultimate)的安装

 

 D:\SoftWare\IntelliJ IDEA\IntelliJ IDEA Ultimate Edition 2016.1.4

 

 

创建桌面快捷方式,我只选一个64位的够了;

注意:如果你的JDK是32位的,Tomcat是32位的,估计要使用32位的才行;

创建扩展名关联:都选上吧 ;

安装到这里就完成了,但接下来还有一些步骤需要配置

 

 

 

 

 

 

 

 

 

 

 

 

 3、IntelliJ IDEA(Ultimate)的使用

在这之前,先在本地里安装好java和scala

 

 

 

 这个必须要同意,不然的话我们安装它干嘛!

 

 

 

 

 

输入激活码##

网上找一个注册码,或者使用以下注册码(有效期为2017年01月31日至2018年01月30日)

CNEKJPQZEX-eyJsaWNlbnNlSWQiOiJDTkVLSlBRWkVYIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMTgtMDEtMzAifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOC0wMS0zMCJ9LHsiY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDE4LTAxLTMwIn0seyJjb2RlIjoiUlMwIiwicGFpZFVwVG8iOiIyMDE4LTAxLTMwIn0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMTgtMDEtMzAifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMTgtMDEtMzAifSx7ImNvZGUiOiJSQyIsInBhaWRVcFRvIjoiMjAxOC0wMS0zMCJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDE4LTAxLTMwIn0seyJjb2RlIjoiREMiLCJwYWlkVXBUbyI6IjIwMTgtMDEtMzAifSx7ImNvZGUiOiJEQiIsIn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

IntelliJ IDEA官网:https://www.jetbrains.com 

 

 

 

 

   即可,得到。

 

 

 

 

 

 

 

 

 

   其实啊,这里永久有效就是。

 

     当然也许这里,以后也会失效,自己从网上搜索就好了,很多很多。

   

 

 

 

 

  主题皮肤设置,看你喜欢哪一种吧!(当然后期,可以自己更改)

IntelliJ IDEA的黑白色背景切换(Ultimate和Community版本皆通用)

 

 

 

 

 可以根据你的需要调整定制需要的特性:

这里可以安装Scala和IdeaVim支持,但我试了几次,根本安装不上;(其实啊,这里可以安装的上,当然,有时候会安装不上)

 

 

 

  果然,IntelliJ IDEA(Ultimate版本)比IntelliJ IDEA(Community版本)多了好多功能啊!

 

 

 

   由此可以看到,至2018年01月30日

 

 

先选择Create New Project 创建一个空项目看看吧

 

 

 

 

 补安装scala插件(其实就是把它给调出来啦)

   Intellij安装scala插件详解

 

 

 

 

 

 

 这里,以Maven方式,创建一个项目。

 

 

 

如何在Maven官网下载历史版本

Eclipse下Maven新建项目、自动打依赖jar包(包含普通项目和Web项目)

最后,这是我的本地maven的配置文件

 

 

 

 

 

  

  别急,等待一会

 

 

 

  点击 Got it!

 

即,在以上过程中,模仿JDK1.8.x和scala2.10.4。

 

 

 

 

 

 

 

  但是,要说么的是,因为,我的本地是scala2.10.4,它默认是2.7.0

 

 

 

 

 

 

  为了引起,不必要的麻烦,将自带的删除吧!

 

  得到

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

D:\Code\IntelliJIDEAUltimateVersionCode\WordCount>mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for zhouls.bigdata:mySpark:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.scala-tools:maven-scala-plugin is missing. @ line 51, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-eclipse-plugin is missing. @ line 69, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mySpark 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/scala-tools/maven-scala-plugin/maven-metadata.xml
Downloading: http://scala-tools.org/repo-releases/org/scala-tools/maven-scala-plugin/maven-metadata.xml
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/scala-tools/maven-scala-plugin/maven-metadata.xml (2 KB at 1.7 KB/sec)
[WARNING] Could not transfer metadata org.scala-tools:maven-scala-plugin/maven-metadata.xml from/to scala-tools.org (http://scala-tools.org/repo-releases): Received fatal alert: protocol_version
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.pom (15 KB at 35.5 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/scala-tools/maven-scala-plugin/2.15.2/maven-scala-plugin-2.15.2.jar (113 KB at 190.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloading: http://scala-tools.org/repo-releases/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml (741 B at 2.8 KB/sec)
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-eclipse-plugin/maven-metadata.xml from/to scala-tools.org (http://scala-tools.org/repo-releases): Received fatal alert: protocol_version
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.pom (19 KB at 66.7 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-plugins/25/maven-plugins-25.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-plugins/25/maven-plugins-25.pom (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/plugins/maven-eclipse-plugin/2.10/maven-eclipse-plugin-2.10.jar (219 KB at 429.1 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mySpark ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mySpark ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\Code\IntelliJIDEAUltimateVersionCode\WordCount\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mySpark ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-scala-plugin:2.15.2:compile (default) @ mySpark ---
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/commons/commons-exec/1.0.1/commons-exec-1.0.1.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/commons/commons-exec/1.0.1/commons-exec-1.0.1.pom (8 KB at 19.4 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/yaml/snakeyaml/1.4/snakeyaml-1.4.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/yaml/snakeyaml/1.4/snakeyaml-1.4.pom (8 KB at 20.2 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-core-asl/1.6.1/jackson-core-asl-1.6.1.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-core-asl/1.6.1/jackson-core-asl-1.6.1.pom (1016 B at 3.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-mapper-asl/1.6.1/jackson-mapper-asl-1.6.1.pom
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-mapper-asl/1.6.1/jackson-mapper-asl-1.6.1.pom (2 KB at 3.7 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-api/2.2.1/maven-plugin-api-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-api/2.2.1/maven-plugin-api-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-core/2.2.1/maven-core-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/reporting/maven-reporting-api/2.2.1/maven-reporting-api-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-parameter-documenter/2.2.1/maven-plugin-parameter-documenter-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/doxia/doxia-logging-api/1.1/doxia-logging-api-1.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-core/2.2.1/maven-core-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-parameter-documenter/2.2.1/maven-plugin-parameter-documenter-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/slf4j/slf4j-jdk14/1.5.6/slf4j-jdk14-1.5.6.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-descriptor/2.2.1/maven-plugin-descriptor-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-monitor/2.2.1/maven-monitor-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/commons/commons-exec/1.0.1/commons-exec-1.0.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/yaml/snakeyaml/1.4/snakeyaml-1.4.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-plugin-descriptor/2.2.1/maven-plugin-descriptor-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-core-asl/1.6.1/jackson-core-asl-1.6.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-monitor/2.2.1/maven-monitor-2.2.1.jar (0 B at 0.0 KB/sec)
Downloading: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-mapper-asl/1.6.1/jackson-mapper-asl-1.6.1.jar
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar (0 B at 0.0 KB/sec)
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/apache/commons/commons-exec/1.0.1/commons-exec-1.0.1.jar (49 KB at 50.0 KB/sec)
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/yaml/snakeyaml/1.4/snakeyaml-1.4.jar (213 KB at 194.7 KB/sec)
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-core-asl/1.6.1/jackson-core-asl-1.6.1.jar (197 KB at 165.6 KB/sec)
Downloaded: http://maven.aliyun.com/nexus/content/repositories/central/org/codehaus/jackson/jackson-mapper-asl/1.6.1/jackson-mapper-asl-1.6.1.jar (530 KB at 391.4 KB/sec)
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[WARNING] No source files found.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mySpark ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\Code\IntelliJIDEAUltimateVersionCode\WordCount\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mySpark ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-scala-plugin:2.15.2:testCompile (default) @ mySpark ---
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[WARNING] No source files found.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mySpark ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mySpark ---
[INFO] Building jar: D:\Code\IntelliJIDEAUltimateVersionCode\WordCount\target\mySpark-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.673 s
[INFO] Finished at: 2017-03-05T00:34:22+08:00
[INFO] Final Memory: 14M/126M
[INFO] ------------------------------------------------------------------------

D:\Code\IntelliJIDEAUltimateVersionCode\WordCount>

 

 

 

 

 

 

 

 

 

 

 

本地模式和集群模式的代码,这里我不多赘述。

 (1)本地运行

  编写完Scala程序后,可以直接在IntelliJ IDEA中以本地(local)模式运行。

在IntelliJ IDEA中,点击Run 按钮,具体见如下

Spark编程环境搭建(基于Intellij IDEA的Ultimate版本)(包含Java和Scala版的WordCount)(博主强烈推荐)

 

 

 

 

 

 

 

欢迎大家,加入我的微信公众号:大数据躺过的坑        人工智能躺过的坑
 
 
 

同时,大家可以关注我的个人博客

   http://www.cnblogs.com/zlslch/   和     http://www.cnblogs.com/lchzls/      http://www.cnblogs.com/sunnyDream/   

   详情请见:http://www.cnblogs.com/zlslch/p/7473861.html

 

  人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。
  目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

 

      对应本平台的讨论和答疑QQ群:大数据和人工智能躺过的坑(总群)(161156071) 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2017-03-04 23:27  大数据和AI躺过的坑  阅读(11525)  评论(0编辑  收藏  举报