Hbase API create table error record for Docker container deployment cluster

Hbase API create table error record Demo method: import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Admin; import org.apa ...

Posted by fusionxn1 on Thu, 30 Apr 2020 02:57:56 -0700

Spring boot log Foundation

Springboot configuration log configuration file location logging.config: classpath:logging/logback.yml Spring boot log classification log4j: an open source log component implemented by apache logback: it is also designed by the author of log4j. It has better features. It is a log framework used to replace log4j and is the native implementation ...

Posted by aris1234 on Tue, 28 Apr 2020 19:41:38 -0700

Lesson 02: Flink starter WordCount and SQL implementation

In this lesson, we mainly introduce the entry program of Flink and the implementation of SQL form. In the last lesson, we have explained Flink's common application scenarios and architecture model design. In this lesson, we will start from a simple WordCount case and implement it in SQL mode at the same time, laying a solid foundation for the l ...

Posted by scoppc on Tue, 28 Apr 2020 03:13:19 -0700

Spark DataFrame is not a real DataFrame

The article was originally written in Mars team column , welcome to follow. From this article, we start a new series of reading paper. Today's paper is Towards Scalable Dataframe Systems , is still a preprint. By Devin Petersohn from Riselab , formerly known as APMLab, the lab has produced a series of famous open source projects, such as Apache ...

Posted by daniel_grant on Sun, 26 Apr 2020 00:52:37 -0700

Log4j output log to separate log file

  Log4j output log to separate log file 09:01:03, January 31, 2018 Number of readings: 1065 Under normal circumstances, the info log of log4j will be printed to a unified log file. When you need to view the execution of a specific function, print a specific function to a specific ...

Posted by rajah on Sat, 25 Apr 2020 07:31:37 -0700

Apache Kafka Study Notes

quick get start install Docker installation single Kafka docker pull wurstmeister/zookeeper docker pull wurstmeister/kafka docker run -d --name zookeeper -p 2181:2181 wurstmeister/zookeeper docker run -d --name kafka -p 9092:9092 -e KAFKA_BROKER_ID=0 -e KAFKA_ZOOKEEPER_CONNECT=Host computer IP:2181 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127 ...

Posted by ghost007 on Fri, 24 Apr 2020 00:00:49 -0700

Recommendation Engine for SparkML (2) - Evaluation of Recommendation Model

The content and code for this article follow Last article To write, we recommend that you take a look at Ha~.We wrote the implementation of the movie recommendation in the last article, but is the recommendation reasonable? This requires us to evaluate the model.For the recommended models, the models are evaluated based on the mean square devia ...

Posted by chiprivers on Thu, 23 Apr 2020 10:52:57 -0700

The implementation of Servlet file upload

1. Three common file upload components: Apache commons upload, Orialiy – COS – 2008(); smart upload2. Use commons upload to develop file upload function1) . download the jar package and dependent package of Commons upload and add them to the project project2) . modify the html form, and set the content code type of the form to multi ...

Posted by predator on Wed, 22 Apr 2020 10:42:33 -0700

oom caused by Java Tomcat Max HTTP header size configuration

Max HTTP header size settings server.max-http-header-size=999999999 //953m JVM parameter configuration -Xms800m -Xmx800m Write a rest api @RestController("action") public class HttpHandler { @PostMapping("/get") public String get() { return "get"; } } post access   Server OOM java.lang.OutOfMemoryError: Java heap spa ...

Posted by dellwoodbu on Tue, 21 Apr 2020 08:21:49 -0700

The Java ftp compressed file is packaged into zip and downloaded to the local user through the browser download function

1. Import jar dependency package: ant-1.9.7.jar commons-net-3.3.jar Baidu online: https://pan.baidu.com/s/1u7m5NYans-UK_h8VSEPfbA Extraction code: qy12 2. Create a tool class DownloadFileUtil.java and write the following code: package com.zghky.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStrea ...

Posted by bdee1 on Tue, 21 Apr 2020 07:08:52 -0700