Get the App
  • PHP design pattern: singleton pattern

    PHP design pattern: singleton pattern

    Application scenario: in a http request, a database connection is used in multiple places. Using a singleton, you only need to create one connection. A huge amount of memory space is wasted when a large class is instantiated multiple times. Using singleton mode allows multiple objects to share the static space of a class in memory.

    Shulou · 2022-06-03 05:56
  • The functions of three core components of hadoop

    The functions of three core components of hadoop

    The three major component functions of hadoop: Common: tools, foundation, for service MapReduce: the distributed idea of dividing and conquering massive data big data set is divided into small data sets each data set, dedicated logical business processing map merging statistical data results reduce

    Shulou · 2022-06-03 05:56
  • Open the MYSQL slow query log to monitor the SQL of efficiency problems

    Open the MYSQL slow query log to monitor the SQL of efficiency problems

    First of all, use the user to log in to the linux client and execute the command mysql-u mjb-p. Mjb is the user name of the database. The system will prompt you to enter the password, enter the password, enter the enter, and successfully enter the command show variables like'.

    Shulou · 2022-06-03 05:56
  • Writing web UI Automation use cases with robot+selenium

    Writing web UI Automation use cases with robot+selenium

    Usually we can use robot framework to write interface automation use cases, but what if some sites do not do front-end separation, there is a lot of repeated testing workload in the iterative process, there is no interface to call verification, and there are automated testing requirements? At this time, the deep pit appeared frequently.

    Shulou · 2022-06-03 05:56
  • ElasticSearch service installation

    ElasticSearch service installation

    In fact, the search engine is not unfamiliar, the online project is basically based on lucence development and encapsulation, but the real-time is relatively poor, stand-alone version, the support for big data is a bit tight. Recently, my friend recommended elasticSearch as a search engine, so I took it for fun and had a try. (

    Shulou · 2022-06-03 05:56
  • Run word statistics through the demo that comes with hadoop

    Run word statistics through the demo that comes with hadoop

    1) mkdir input2) cd intput3) echo "hello word" > file1.txt4) echo "hello Hadoop" > file2.txt5) echo "hell

    Shulou · 2022-06-03 05:56
  • The focus of distributed system-- detailed explanation of

    The focus of distributed system-- detailed explanation of "stateless"

    If this is the second time to see my article, welcome to scan the code at the end of the article to subscribe to my personal official account (cross-border architect). This article is 2728 words long and is recommended to read for 8 minutes. Insist on originality, each article is written by heart ~ the two chapters "data consistency" and "High availability" are essentially one.

    Shulou · 2022-06-03 05:56
  • Analysis of the implementation process of ES Learning Notes-AvgAggregation

    Analysis of the implementation process of ES Learning Notes-AvgAggregation

    When we need to look at the statistics of the data, the mean is one of the most important features. For large amounts of data, this kind of simple aggregate ES can be returned in seconds. Aggregation is a feature of ES. So how does ES achieve this function? As we know, the data of ES is stored in each node, so

    Shulou · 2022-06-03 05:56
  • Test documents that testers must master

    Test documents that testers must master

    Software test documents are generally a set of documents that provide test information, which can be tools for testers or development aids for project development teams. In general, there are mainly the following test documents related to the project. Test plan. (for details, please refer to a standard test plan.

    Shulou · 2022-06-03 05:56
  • Spark getting started Guid

    Spark getting started Guid

    First, I first know that Spark and HadoopApache Spark are a new general-purpose engine for big data processing, which provides distributed memory abstraction. Spark as its name, the biggest feature is fast (Lightning-fast), comparable to Hado

    Shulou · 2022-06-03 05:55
  • Introduction to Git Foundation (1) basic concept of Git

    Introduction to Git Foundation (1) basic concept of Git

    The difference between Git and traditional version control system: traditional version control system: 1, regard the information saved as a group of basic files and the differences accumulated by each file over time 2, record only the changed data 3, each clone only gets the latest content Git:1, and make the data into a set of snapshots.

    Shulou · 2022-06-03 05:55
  • AbsInt-A suite of performance / resource analysis tools to ensure code security

    AbsInt-A suite of performance / resource analysis tools to ensure code security

    AbsInt is a safety-critical software development, verification, verification and certification tool chain supplier, able to provide customers with a complete performance analysis tool suite to ensure code security, as well as software analysis, verification, validation and compiler technology related consulting services. AbsInt products are widely used.

    Shulou · 2022-06-03 05:55
  • Pytest of a series of learning triggered by an exercise (1)

    Pytest of a series of learning triggered by an exercise (1)

    Boxing does not leave the hand does not leave the mouth, daily practice is indispensable! Today's exercise topic: enter a certain day of a certain month of a certain year, and judge which day of the year it is? After the code has been written, the work of self-testing is indispensable. I want to try to use tools or frameworks to complete this work. Code: https://githu

    Shulou · 2022-06-03 05:55
  • The mode of thinking determines the height-- from the promotion of excellent tools

    The mode of thinking determines the height-- from the promotion of excellent tools

    Mode of thinking determines height-starting with the promotion of excellent tools, in the annual inventory of excellent software / method practices and discussing with colleague CK, we all think that this is not cost-effective. There are three reasons: first, if we want to reconstruct some good method / tool courseware, we need to improve the tool itself.

    Shulou · 2022-06-03 05:55
  • Hive installation record

    Hive installation record

    Hive standalone mode installation-jared this deployment note was recorded in early 2014 and is now on 51cto. For more information about building the basic environment of hadoop, please refer to the following link: http://ganlanqing.blog.51cto.com

    Shulou · 2022-06-03 05:55
  • Build the environment before using scrapy

    Build the environment before using scrapy

    At the beginning, I encountered a lot of problems when I created the project directly by scrapy startproject [name]. Executing this problem will prompt that problem. After solving it, I think it's all right. 1.pip install scrapy prompts the pip version to upgrade.

    Shulou · 2022-06-03 05:55
  • The HDFS Reading and Writing principle of Hadoop

    The HDFS Reading and Writing principle of Hadoop

    1. The full name of HDFS basic concept HDFS is Hadoop Distributed System. HDFS is designed for streaming access to large files. Suitable for hundreds of MB,GB and TB, and write once read many times of the situation. For low latency data access,

    Shulou · 2022-06-03 05:55
  • Response.redirect transferred to the new page and reported an error.

    Response.redirect transferred to the new page and reported an error.

    The code is written like this: Response.Redirect ("http://localhost:8080/projectL/allLogin.html"); backend directly reported an error. After viewing and searching, add r after the code as follows."

    Shulou · 2022-06-03 05:55
  • Use shell script to view zookeeper cluster status

    Use shell script to view zookeeper cluster status

    Zooper cluster structure: hostname role node1 followernode2 leadernode3 followermaster observer script content: #! / bin/bashfunction get

    Shulou · 2022-06-03 05:55
  • Fleeting handling of the DOS interface of VS and Dev running results

    Fleeting handling of the DOS interface of VS and Dev running results

    In the process of running the program with VS2010 and Dev C++, there will be a phenomenon that the DOS interface flashes past and does not see the result clearly. I personally have two solutions to this problem: 1. Add a while () dead loop to the input, so that in one input

    Shulou · 2022-06-03 05:55