New features of JDK11: new HTTP API

brief introduction Before JDK11, the HTTP function of java was very weak, only HttpURLConnection was provided for HTTP connection, and it was very complex to use. So we usually use the third-party HTTP client (Apache HttpComponents or OkHttp) to make HTTP requests. Everything has changed in JDK11. In the java.net.http package, the latest HttpCl ...

Posted by PhilipXVIII18 on Wed, 13 May 2020 15:58:37 -0700

phoenix-5.0.0 and CDH6.0.1 compatibility cause secondary index unavailable

Today, when testing phoenix's secondary index function, the following exception occurred when the index was created to write data: Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 action: org.apache.phoenix.hbase.index.builder.IndexBuildingFailureException: Failed to build index for unexpected reason! ...

Posted by superhaggis on Sat, 09 May 2020 07:38:49 -0700

RocketMq cluster construction steps teaching package teaching package meeting

mq cluster construction I haven't written these technical articles for a while. I'll spare some time to write them today, or I'll forget them This article records the process of building rocketmq cluster, and it's also a half day's achievement record! Interested friends like to go! Well, there's not much bullshit. Let's start. This article i ...

Posted by scoppc on Thu, 07 May 2020 00:07:47 -0700

Hive quick start series (12) | introduction and use of hive data compression

                   . Catalog 1, Hadoop source compilation supports Snappy compression 1.1 resource preparation 1.2 jar package installation 1.3 compiling source code 2, Hadoop compression configuration 2 ...

Posted by pavanpuligandla on Tue, 05 May 2020 23:29:55 -0700

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 ...

Posted by spartan7 on Tue, 05 May 2020 16:37:36 -0700

Spring propagation mechanism-Propagation.REQUIRED

Most of the statements on the Internet are "if there is a transaction, the current transaction is supported.". Open if no transaction " It's just a silly face... My understanding at the beginning is that if the save method is called, a transaction will be opened when the transaction is executed to userMapper.save. At this time ...

Posted by drakkon on Tue, 05 May 2020 11:53:30 -0700

Tomcat virtual host configuration based on domain name

Using domain name based virtual host configuration is a popular way. You can configure multiple domain names on the same IP and access them through port 80. 1, Suppose the server has an IP address of 192.168.2.170 [root@localhost ~]# ifconfig ens33:5 192.168.2.170/24 up [root@localhost ~]# ifconfig ens33:5: flags=4163 ...

Posted by karlovac on Tue, 05 May 2020 01:55:34 -0700

A simple jsp interface to upload attachments to the server instance

1. Description: upload the attachment in a web project. The jar package used in demo is commons-fileupload-1.3.3.jar commons-httpclient-3.1.jar commons-io-2.0.1.jar. It can be obtained in the source code. Download address: http://download.csdn.net/download/shenju 2011/10215828 2. Code interpretation (1) The jsp interface is processed with a ...

Posted by hairyjim on Tue, 05 May 2020 01:30:35 -0700

Go Language (18) context & Log Items

Context&log items context Method to cancel goroutine in general scenarios var wg sync.WaitGroup var exit bool func worker(exitChan chan struct{}) { LOOP: for { fmt.Printf("work\n") time.Sleep(time.Second) /*if exit { break } */ select { case <- exitChan: break LOOP ...

Posted by loopykd on Mon, 04 May 2020 16:40:51 -0700

ssm upload image file to ftp (image compression processing)

ssm upload image file to ftp (image compression processing) Development tool Eclipse 1. Introduce jar package Download address of jar package: Ali central warehouse 2. Configure spring-mvc.xml and add the following code <bean id="multipartResolver" class="org.springframework.web.multipart.common ...

Posted by asy1mpo on Mon, 04 May 2020 04:28:17 -0700