首页 » 2019年2月

1.日志采集

  1. 分布式,集群

3.zookeeper,docker,linux
4.机器学习,是建模和算法
5.tensrflow,jupyter
6.日志采集flume,kafka
7.机器学习kaggle,---deep learning 神经网络,图像识别
8.人工智能----包括----机器学习----包括deep learning
9.hadoop本质,跑批量数据--block 128M,小文件用oss。强调并行,不是并发
10.mib,sprak中使用python ---爬虫算法,
11.hadoop--仅批处理,storm仅流处理,spark混合

swagger ui 没有正式发布,需要获取的话,指定官方snap仓库

 <repository>
            <id>jcenter-snapshots</id>
            <name>jcenter</name>
            <url>http://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
        </repository>

java cannot find symbol of kotlin

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/shenfeng/dev/thor-service/thor-content/src/main/java/tv/rr/thor/content/controller/CommonController.java:[9,39] cannot find symbol
  symbol:   class GetTokenResponseData
  location: package tv.rr.thor.content.responseData
[ERROR] /home/shenfeng/dev/thor-service/thor-content/src/main/java/tv/rr/thor/content/controller/CommonController.java:[54,25] cannot find symbol
  symbol:   class GetTokenResponseData
  location: class tv.rr.thor.content.controller.CommonController
``

解决方案:把kotlin编译插件放在java编译插件的上面,另外需要kotlin在<phase>process-sources</phase> 阶段就执行
配置如下

        <plugin>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-maven-plugin</artifactId>
            <version>${kotlin.version}</version>
            <executions>
                <execution>
                    <id>compile</id>
                    <phase>process-sources</phase>
                    <!--<phase>compile</phase>-->
                    <goals>
                        <goal>compile</goal>
                    </goals>
                    <configuration>
                        <sourceDirs>
                            <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
                            <sourceDir>${project.basedir}/src/main/java</sourceDir>
                        </sourceDirs>
                    </configuration>
                </execution>
                <execution>
                    <id>test-compile</id>
                    <phase>test-compile</phase>
                    <goals>
                        <goal>test-compile</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <args>
                    <arg>-Xjsr305=strict</arg>
                </args>
                <compilerPlugins>
                    <plugin>spring</plugin>
                </compilerPlugins>
                <jvmTarget>1.8</jvmTarget>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>org.jetbrains.kotlin</groupId>
                    <artifactId>kotlin-maven-allopen</artifactId>
                    <version>${kotlin.version}</version>
                </dependency>
            </dependencies>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.0</version>
            <executions>
                <execution>
                    <id>default-compile</id>
                    <phase>none</phase>
                </execution>
                <execution>
                    <id>default-testCompile</id>
                    <phase>none</phase>
                </execution>
                <execution>
                    <id>java-compile</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                </execution>
                <execution>
                    <id>java-test-compile</id>
                    <phase>test-compile</phase>
                    <goals>
                        <goal>testCompile</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <release>11</release>
                <source>11</source>
                <target>11</target>
            </configuration>
        </plugin>