Get the App
  • Change dataframe to rdd format under spark

    Change dataframe to rdd format under spark

    Dataframe can do a lot of things, but when you store it locally, you can only save the parquest format. You need to store the source format, and you need to convert it to a rdd type to map every line in the dataframe into a string connected by a comma.

    Shulou · 2022-06-03 05:02
  • Big data's zookeeper of Ecology (principle)

    Big data's zookeeper of Ecology (principle)

    1. Role description of the cluster: role description leader (leader) leader is responsible for publishing decisions, mainly dealing with write request follower (follower) Follower is used to receive client requests and return results to the client (only read requests can be processed, if write requests are received, please

    Shulou · 2022-06-03 05:02
  • Add nodes to hadoop and hbase clusters

    Add nodes to hadoop and hbase clusters

    1. Hadoop capacity expansion 1. Configure the hosts file of each node, add the IP and hostname of the newly added two nodes, and add the following content: 192.168.11.131 master1192.168.11.132 master219

    Shulou · 2022-06-03 05:02
  • Implement MongoDB foreign key association

    Implement MongoDB foreign key association

    Source: http://stackoverflow.com/questions/29392169/populating-field-values-for-referred-documents-in-agg

    Shulou · 2022-06-03 05:02
  • Mybatis source code analysis [03.SqlSessionFactory]

    Mybatis source code analysis [03.SqlSessionFactory]

    / / construct SqlSessionpublic interface SqlSessionFactory {/ / 8 methods can be used to create SqlSession instance SqlSession openSession ()

    Shulou · 2022-06-03 05:02
  • Example of 0010-Hive multi-delimiter support

    Example of 0010-Hive multi-delimiter support

    Warm Tip: to see the high-definition no-code picture, please open it with your mobile phone and click the picture to enlarge. 1. The problem describes how to load a data file with multiple characters as field separators into the Hive table, as follows: the field delimiter is "@ # $" test1@#$test1nam

    Shulou · 2022-06-03 05:02
  • Lvm related command learning

    Lvm related command learning

    My blog has been migrated to xdoujiang.com, please go there to communicate with me the basic environment 1, the current version of cat / etc/debian_version7.82, installation package lvm2apt-get install lvm2-y one, will

    Shulou · 2022-06-03 05:02
  • HBase Command Line Operation of big data Series

    HBase Command Line Operation of big data Series

    1. Course introduction this article will first introduce the HBase command line, and then introduce the java code to add, delete, modify and query the tables in hbase. All commands in this article are in CentOS-6.4-x86_64,hadoop-2.5.2,jdk1.8.0_1

    Shulou · 2022-06-03 05:02
  • 0035-how to use Sentry to manage Hive external tables (supplementary)

    0035-how to use Sentry to manage Hive external tables (supplementary)

    Warm Tip: to see the high-definition no-code picture, please open it with your mobile phone and click the picture to enlarge. 1. Purpose of documentation this document focuses on how to use Sentry to manage the permissions of Hive/Impala external tables. Content summary 1. Create a test library and external table 2. Create roles and authorize

    Shulou · 2022-06-03 05:01
  • Tp3.2 RESTFul generates weather information of Api interfaces of xml, html and json according to region query.
  • Python spark windows pycharm pyspark environment configuration

    Python spark windows pycharm pyspark environment configuration

    1. Download and add SPARK_HOME = D:\ spark-2.3.0-bin-hadoop2.7 on D disk as follows. And add% SPARK_HOME%/bin to the environment variable PATH. Then go to the command line and type pys

    Shulou · 2022-06-03 05:01
  • Popular understanding of software design principles and methods

    Popular understanding of software design principles and methods

    There are a lot of opinions about software design principles on the Internet, which are very accurate and official, but for some beginners, they may not know what to say. In the end, they are depressed, and it should be a pleasure to learn software. So what are the principles of software design? (1) Reliability to make a reliable software

    Shulou · 2022-06-03 05:01
  • Lightweight can be embedded in multi-dimensional analysis background

    Lightweight can be embedded in multi-dimensional analysis background

    There are usually three options for background data sources in multidimensional analysis (BI) systems. First, the general database; second, the professional data warehouse; third, the data source of the BI system. However, all three options have their own problems. Ordinary databases are generally stored in row style, so it is difficult to obtain the hope of multidimensional analysis.

    Shulou · 2022-06-03 05:01
  • Beanshell scripts commonly used in jmeter

    Beanshell scripts commonly used in jmeter

    Sorted out a number of jmeter commonly used beanshell scripts for your reference! Timestamp import java.text.SimpleDateFormat;import java.util.Calendar;import

    Shulou · 2022-06-03 05:01
  • Construction of ubuntu18.04 tensorflow machine learning environment

    Construction of ubuntu18.04 tensorflow machine learning environment

    1. Host configuration description A few days ago, I learned that the company had purchased several new hosts, so the leader of our group applied to the company for one back to do data analysis. The server is Hewlett-Packard mainframe, the model is: HP EliteDesk 800G3. It's not strong, but it's used to make GPU.

    Shulou · 2022-06-03 05:01
  • Enterprise big data platform

    Enterprise big data platform

    Deployment: divided into test environment and production environment. Hadoop distributions: Apache, CDH (tar package, rpm package, parcel package, which must be managed by cloudera manager), HDP Note: disable IPV6; within the framework of big data

    Shulou · 2022-06-03 05:01
  • Set up docker and build spark cluster in docker container

    Set up docker and build spark cluster in docker container

    I personally tested and built, because it is a beginner to build all the way down a lot of detours. If there are incorrect or more concise steps, please propose the environment: virtual machine installed on win10, centos7 installed on virtual machine, and liunx interface (previously built once, both the network and port can be telne.

    Shulou · 2022-06-03 05:01
  • An answer to the question of Lintcode1 axib Problem solution

    An answer to the question of Lintcode1 axib Problem solution

    [topic description] Write a function that add two numbers An and B. You should not use + or any arithmetic operator

    Shulou · 2022-06-03 05:01
  • Python-- finds elements through xpath relative node position (continued)

    Python-- finds elements through xpath relative node position (continued)

    I have previously written methods relative to the parent element and the next sibling element. This time supplement all the methods that xpath uses to find elements relative to the position of the node. Instead of citing examples, you can go to practice. Xpath relative node search method: 1. Xpath ('. / ancestor::*')

    Shulou · 2022-06-03 05:01
  • The pit that big data stepped on

    The pit that big data stepped on

    When building a cluster, the data mount point of hdfs must be specified to a separate directory, not under / home, because in the process of use, it is likely to cause a mount point to be full, if so, / home may be full, affecting the normal use of the linux system.

    Shulou · 2022-06-03 05:01