- 运行exmaple中示例错误1:
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration
VM options启动参数增加:
-Dspark.master=local
set ai | |
"自动缩进宽度 | |
set sw=4 | |
set ts=4 | |
"关闭高亮显示 | |
set nohlsearch | |
set is | |
set ignorecase | |
set smartcase |
"" Source your .vimrc | |
"source ~/.vimrc | |
"" -- Suggested options -- | |
" Show a few lines of context around the cursor. Note that this makes the | |
" text scroll if you mouse-click near the start or end of the window. | |
set number relativenumber | |
set idearefactormode=keep | |
set ideajoin | |
set surround |
FROM ubuntu:16.04 | |
LABEL "author"="Hasan Comak" | |
ENV GERRIT_VERSION="2.13.9" | |
ENV GERRIT_RELEASE=1 | |
ENV GERRIT_HOME /var/gerrit | |
ENV GERRIT_SITE ${GERRIT_HOME}/review_site |
import org.apache.kafka.common.serialization.StringDeserializer | |
import org.apache.spark.SparkConf | |
import org.apache.spark.streaming.{Seconds, StreamingContext} | |
import org.apache.spark.streaming.kafka010._ | |
import org.apache.spark.streaming.kafka010.LocationStrategies.PreferConsistent | |
import org.apache.spark.streaming.kafka010.ConsumerStrategies.Subscribe | |
/** | |
* Consumes messages from one or more topics in Kafka and does wordcount. | |
* export SPARK_KAFKA_VERSION=0.10 |
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration
VM options启动参数增加:
-Dspark.master=local
import org.primefaces.component.picklist.PickList; | |
import org.primefaces.model.DualListModel; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import java.util.List; | |
import java.util.Objects; | |
/** |
package com.ypg.liferay.portlet; | |
import org.jboss.arquillian.junit.Arquillian; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import com.liferay.counter.service.CounterLocalServiceUtil; | |
import com.liferay.portal.kernel.util.Validator; | |
import com.liferay.portal.model.User; | |
import com.liferay.portal.service.UserLocalServiceUtil; | |
@RunWith(Arquillian.class) |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<!-- Generated by RHY @will_awoke --> | |
<module name="Checker"> | |
<property name="charset" value="UTF-8"/> | |
<property name="severity" value="warning"/> |
" Ctrl + Alt + I - ReSharper generate file beside | |
" Ctrl + Alt + S - Resharper surrand with template | |
" File {{{ | |
nmap zX :vsc Edit.UndoClose<CR> | |
nnoremap Q :vsc File.SaveSelectedItems<CR> :vsc File.Close<CR> | |
" }}} | |
" Build {{{ |