k8s’s Init Containers container implements code version upgrade release and deployment version rollback: practical operation version

Initialization containers in Pod: Init Containers Theoretical premise of initContainers implementation: Containers in the same Pod share network, volume and other resources Init Containers In Kubernetes, an init container is a container that is started and executed before other containers in the same Pod. Its purpose is to perform initialization logic for the main application […]

Golang standard library: bytes package – byte slice byte array convenient operation

2.2 bytes – byte slice convenient operation This package defines some convenience operations for manipulating byte slices. Because strings can be represented as []byte, the functions and methods defined by the bytes package are very similar to the strings package, so the explanation will be similar to the strings package and can even be referred […]

Operations of hive internal tables and external tables

Table of Contents Create table statement type of data Classification of tables Classification The difference between internal tables and external tables Example Basic operations of internal tables Knowledge points Example Basic operations of external tables Example View/modify table Knowledge points Example Default separator Example quick mapping table Knowledge Example Data import and export File data […]

Operation of partition table and bucket table in Hive

Table of Contents Partition Table First level partition table Knowledge points Example multi-level partitioning Knowledge points Example Partition table operations Example hadoop_hive documentation Bucket table Important parameters Basic bucket table Knowledge points Example Bucket table sorting Knowledge points Example Bucketing principle The difference between partition table and bucket table Partition table Partitioned table features/benefits: It […]

HBase Java API development: batch operations

Level 1: Obtain data in batches Knowledge points 1.table.get(gets) will return a Result[] result array, which stores all the data of this query. You can use this array to traverse what we need data. 2.result.rawCells(), result is a single result. All the data in a row is stored here. rowCells( of result ) method will […]

Concepts and operations of dataframe and saprkSQL

sparkSQL background sparkContext: SparkContext is the entry point for a Spark application and represents the connection to the Spark cluster. It is the main entry point in Spark 1.x, and SparkSession was introduced in Spark 2.x to replace SparkContext. SparkContext is responsible for managing task scheduling, data partitioning and communication with the cluster. You can […]

pytorch tensor operations

Table of Contents Creation and basic operations of tensor Initializing a Tensor–Creation method Attributes of a Tensor–Attributes of a tensor Operations on Tensors — Operations on Tensors Official Documentation Creation and basic operations of tensor Initializing a Tensor–creation method Directly from data — Create directly with data Create a tensor directly from data, and the […]

JSON operations in MySQL

JSON operations in MySQL introduction 1. Create tables and add data 2.Basic query 2.1 General json query 2.2 Multiple condition query 2.4 Related table query 3.JSON function operation 3.1 ->, ->>Differences 3.2 JSON_EXTRACT function: return the desired fields from json 3.3 JSON_CONTAINS(): Whether JSON format data contains specific objects in fields 3.4 JSON_OBJECT(): Convert a […]

File operations in C language (remainder)

The word count of the last blog has reached the limit, so I will add the content to this article. We still have no introduction to the determination of the end of file reading and the content of the file buffer. Let us start the next study! Table of Contents 1. Determination of the end […]