Java code implements basic operations on HBase
overview
1. Importing jar packages
2. Testing
3. Abnormal handling
First of all, the HBase Build, then start Zookeeper,Hadoop HBase cluster
1. Importing jar packages
Get ready:
1.CentOS7
2.Zookeeper Cluster
3. Hadoop 2.7.3 Cluster
4. HBase 2.0.0 cluster
5.eclipse
Build a java project in eclipse where you create a new lib fol ...
Posted by torrentmasta on Wed, 23 Jan 2019 19:27:12 -0800
tomcat starts error reporting java.util.zip.ZipException: invalid LOC header (bad signature)
Deploying the war package to tomcat due to project needs, the start-up time is wrong:
31-Oct-2018 09:11:18.555 information [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [D:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9.0 ...
Posted by northstjarna on Wed, 23 Jan 2019 00:06:13 -0800
java.lang.NoSuchFieldException: resourceEntries struts2
1. About using struts2 to report java.lang.NoSuchFieldException: resourceEntries in the project.
When we use Tomcat version 7.0.64 and below, there will be no problem. When we use tomcat 7.0.65, we will report this question. Many of the answers we see online are about tomcat 8 and so on.
The actual problems began at tomcat 7.0.65. The root ...
Posted by blues on Tue, 22 Jan 2019 09:42:12 -0800
Development and Use of UDF by hive
Recently, there is a need for data mining, which requires statistics of the number of things given in the vicinity of longitude and latitude n kilometers. When it comes to calculating the distance between two points of the earth, UDF should be written to calculate the distance between two points of the earth.
I. UDF Writing
A ...
Posted by HairyScotsman on Sun, 20 Jan 2019 08:12:12 -0800
maven Engineering Packing, Single Node Running wordcount (I)
spark shell is only used to test and validate our programs. In production environment, programs are usually programmed in IDE, then packaged into jar packages and submitted to the cluster. The most commonly used method is to create a Maven project to manage the dependencies of jar packages by Maven. First, edit Maven project on ...
Posted by volka on Sat, 19 Jan 2019 13:45:12 -0800
Flume data acquisition preparation
Flume is a highly available, reliable and distributed system for collecting, aggregating and transferring massive logs provided by Cloudera. Flume supports customizing various data senders in the log system for collecting data. At the same time, Flume provides the ability to process data simply and write to various data rec ...
Posted by ron814 on Sat, 19 Jan 2019 07:21:13 -0800
Examples of Basic Operating Functions in Spark Streaming
Guide: in In the Spark Streaming document Documents can be roughly divided into: Transformations,Window Operations,Join Operations,Output Operations operation
Article directory
Transformations
Window Operations
Join Operations
Output Operations
This article illustrates my code cloud Through train
Please get some basic info ...
Posted by DasHaas on Sat, 19 Jan 2019 04:24:13 -0800
Chapter 4: Building jersey-based RESTful api with IntelliJ IDEA
Compiler: Intellij IDEA
System environment: MAC OS
Related technologies: Maven, tomcat 7, jdk8
1. Create projects
First, create a web Application project (we're going to use maven to introduce Jersey's related jar package, so we don't need to create a restful project directly, because the restful project will download Jersey related jar package ...
Posted by cairesdesigns on Sat, 12 Jan 2019 16:48:10 -0800
Summary of Java IO Stream Learning VIII: Commons IO 2.5-IOUtils
Summary of Java IO Stream Learning VIII: Commons IO 2.5-IOUtils
For reprinting, please indicate the source: http://blog.csdn.net/zhaoyanjun6/article/details/55051917
This article is from [Zhao Yanjun's blog]
In the last article, I introduced the common usage of IO FileUtils, and today I introduce the use of IO Utils.
Relevant Method ...
Posted by s2r on Wed, 09 Jan 2019 15:51:10 -0800
Maven's pom.xml file details - --- Build Settings
According to POM 4.0.0 XSD, the build element is conceptually divided into two parts: BaseBuild (including the common parts of poject build and profile build, see below) and some advanced features included in poject build.
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan ...
Posted by matte on Tue, 08 Jan 2019 00:24:10 -0800