学习
实践
活动
工具
TVP
写文章

数学--数论--HDU6919 Senior PanⅡ【2017多校第九场】

给出一个区间[L,R][L,R],问该区间中所有以KK作为最小因子(大于11的)的数字之和

17820

【Hadoop】Hadoop 2.x 完全分布式环境搭建

hadoop-senior02.ibeifeng.com hadoop-senior03.ibeifeng.com yarn-site.xml: <configuration> $ scp -r hadoop-2.5.0/ hadoop-senior02.ibeifeng.com:/opt/app $ scp -r hadoop-2.5.0/ hadoop-senior03. , 在hadoop-senior02上启动datanode和resourcemanager和nodemanager, 在hadoop-senior03上启动datanode $ ssh-copy-id hadoop-senior02.ibeifeng.com $ ssh-copy-id hadoop-senior03.ibeifeng.com 即可实现三台虚拟机免密码互相登陆 ,如在hadoop-senior上输入: $ ssh hadoop-senior02.ibeifeng.com

24330
  • 广告
    关闭

    2022腾讯全球数字生态大会

    11月30-12月1日,邀您一起“数实创新,产业共进”!

  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Linux实践(1) - sudo 权限规划

    |cut -c4-8`"|passwd --stdin ops_senior$n >> /dev/null && echo "ops_senior$n success!" ; done useradd dev_senior1 -g 1210 && echo 123456 | passwd --stdin dev_senior1 >> /dev/null && echo "dev_senior1 successs!" "dba_senior1 success!" "net_senior1 success!"

    63600

    【报错总结】搭建NameNode报错

    启动NameNode,NameNode进程无法启动,查看日志文件,日志文件/opt/modules/hadoop-2.5.0/logs/hadoop-beifeng-namenode-bigdata-senior.ibeifeng.com.log bigdata-senior step2. 进入/etc/sysconfig/network,设置如下: NETWORKING=yes HOSTNAME=bigdata-senior.ibeifeng.com GATEWAY=192.168.74.1 192.168.74.131 hadoop-senior02.ibeifeng.com 192.168.74.130 hadoop-senior03.ibeifeng.com 192.168.74.132 bigdata-senior.ibeifeng.com step4.

    55640

    【Hadoop 分布式部署 四:配置Hadoop 2.x 中主节点(NN和RM)到从节点的SSH无密码登录】

    正式操作开始   在主机hadoop-senior.zuoyan.com上的操作:       ssh-copy-id hadoop-senior03.zuoyan.com       ssh-copy-id hadoop-senior02.zuoyan.com       (测试比如我 想从节点一登录到节点二上使用的命令: ssh hadoop-senior02.zuoyan.com 复制配置好的 /hadoop-2.5.0/ beifeng@hadoop-senior02.zuoyan.com:/opt/app/ ( 当前所在的目录 /hadoop-2.5.0/ beifeng@hadoop-senior03.zuoyan.com:/opt/app/           然后再到节点三上面去查看一下效果 就会发现文件已经拷贝上去了 然后执行 ssh-copy-id hadoop-senior02.zuoyan.com ?

    20820

    【HBase】HBase的环境搭建及基本使用

    /hadoop-auth-2.2.0.jar [beifeng@hadoop-senior lib]$ rm -rf . /hadoop-common-2.2.0.jar [beifeng@hadoop-senior lib]$ rm -rf . /hadoop-hdfs-2.2.0.jar [beifeng@hadoop-senior lib]$ rm -rf . /hadoop-yarn-api-2.2.0.jar [beifeng@hadoop-senior lib]$ rm -rf . /hadoop-client-2.2.0.jar [beifeng@hadoop-senior lib]$ rm -rf .

    26850

    【Hadoop 分布式部署 三:基于Hadoop 2.x 伪分布式部署进行修改配置文件】

    修改配置文件,设置服务运行机器节点 首先在 hadoop-senior 的这台主机上 进行 解压 hadoop2.5 按照伪分布式的配置文件来进行配置 使用命令 : --指定 namenode 所在的机器--> <property> <name>fs.defaultFS</name> <value>hdfs://hadoop-senior.zuoyan.com       配置SecondaryNameNode 所在的节点 dfs.namenode.secondary.http-address hadoop-senior03 <property> <name>dfs.namenode.secondary.http-address</name> <value>hadoop-senior03 hadoop-senior02.zuoyan.com hadoop-senior03.zuoyan.com 配置yarn       首先配置 yarn.env 配置yarn的环境变量

    28271

    【Hadoop 分布式部署 十 一: NameNode HA 自动故障转移】

    :2181,hadoop-senior02.zuoyan.com:2181,hadoop-senior03.zuoyan.com:2181</value> </property>  启动:      :scp -r etc/hadoop/core-site.xml etc/hadoop/hdfs-site.xml hadoop-senior02.zuoyan.com:/opt/app/hadoop- 2.5.0/etc/hadoop/       使用命令:scp -r etc/hadoop/core-site.xml etc/hadoop/hdfs-site.xml hadoop-senior03 然后在hadoop-senior02.zuoyan.com 主机上的zookeeper 的客户端进行查看 ls /             ( 就会发现多了一个节点 ) ?            然后去查看Hadoop-senior.zuoyan.com 是否成为了Active ?

    38450

    从零开始搭建大数据平台系列之(1)——环境准备

    bigdata-senior step2. 192.168.74.131 hadoop-senior02.ibeifeng.com 192.168.74.130 hadoop-senior03.ibeifeng.com 192.168.74.132 bigdata-senior.ibeifeng.com step4. rh [beifeng@bigdata-senior opt]$ su Password: [root@bigdata-senior opt]# chmod u+w /etc/sudoers [root @bigdata-senior opt]# vim /etc/sudoers beifeng ALL=(root)NOPASSWD:ALL [root@bigdata-senior opt]# chmod

    38970

    【Hadoop 分布式部署 十:配置HDFS 的HA、启动HA中的各个守护进程】

    hadoop.apache.org/docs/r2.5.2/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html 一、   在Hadoop-senior.zuoyan.com <property> <name>dfs.namenode.secondary.http-address</name> <value>hadoop-senior03 property> <property> <name>dfs.namenode.rpc-address.ns1.nn2</name> <value>hadoop-senior02 :8485;hadoop-senior02.zuoyan.com:8485;hadoop-senior03.zuoyan.com:8485/ns1</value> </property> 可以看到复制镜像文件是从Hadoop-senior.zuoyan.com 上拷贝 ?

    37260

    【Hadoop 分布式部署 九:分布式协作框架Zookeeper架构 分布式安装部署 】

    因为配置的是分布式,所以需要配置多个主机,然后再从 zoo.cfg 中添加 下面内容     server.1=hadoop-senior.zuoyan.com:2888:3888     server .2=hadoop-senior02.zuoyan.com:2888:3888     server.3=hadoop-senior03.zuoyan.com:2888:38888     如下图 ?     第三台主机里面写入 3     接下来使用scp -r 命令来同步 zookeeper ,命令: scp -r zookeeper-3.4.5/ beifeng@hadoop-senior02 .zuoyan.com:/opt/app/     继续同步到hadoop-senior03.zuoyan.com  命令:scp -r zookeeper-3.4.5/ beifeng@hadoop-senior03

    20720

    【Oozie】Oozie企业级案例分析及实现

    :8020/user/hive/warehouse/user_hive/part-m-00000 2 pu 12345 hdfs://hadoop-senior.ibeifeng.com :8020/user/hive/warehouse/user_hive/part-m-00000 3 system system hdfs://hadoop-senior.ibeifeng.com :8020/user/hive/warehouse/user_hive/part-m-00000 4 zxh zxh hdfs://hadoop-senior.ibeifeng.com :8020/user/hive/warehouse/user_hive/part-m-00000 5 test test hdfs://hadoop-senior.ibeifeng.com :8020/user/hive/warehouse/user_hive/part-m-00000 6 pudong pudong hdfs://hadoop-senior.ibeifeng.com

    31140

    【Hue】大数据WEB工具Hue

    webhdfs_url=http://hadoop-senior.ibeifeng.com:50070/webhdfs/v1 # Change this if your HDFS cluster :8088 # URL of the ProxyServer API proxy_api_url=http://hadoop-senior.ibeifeng.com:8088 # URL of the HistoryServer API history_server_api_url=http://hadoop-senior.ibeifeng.com: hive_server_host=hadoop-senior.ibeifeng.com # Port where HiveServer2 Thrift server runs on. host=hadoop-senior.ibeifeng.com # Port the database server is listening to.

    40220

    你好MyBatis 中高级篇

    "> <select id="queryBookByAuthorOrName" resultType="com.<em>senior</em>.entity.Book"> select * from ; import com.senior.entity.Book; import org.apache.ibatis.annotations.Param; import java.util.List; "> <select id="queryBookByAuthorOrName" resultType="com.<em>senior</em>.entity.Book"> select * from ; import com.complete.util.MyBatisUtil; import com.senior.dao.BookDao; import com.senior.entity.Book 两个条件都存在时: package com.senior.test; import com.complete.util.MyBatisUtil; import com.senior.dao.BookDao

    8820

    【Hadoop】HDFS NameNode Federation联盟架构

    /value> </property> <property> <name>dfs.namenode.rpc-address.ns1</name> <value>hadoop-senior01 </value> </property> <property> <name>dfs.namenode.https-address.ns1</name> <value>hadoop-senior01 /value> </property> <property> <name>dfs.namenode.rpc-address.ns2</name> <value>hadoop-senior02 </value> </property> <property> <name>dfs.namenode.https-address.ns2</name> <value>hadoop-senior02 <property> <name>fs.defaultFS</name> <value>hdfs://hadoop-senior02.ibeifeng.com

    62950

    【Hadoop】HDFS高可用性HA架构、ResourceManager HA架构环境搭建及自动故障转移

    </value> </property> <property> <name>dfs.namenode.rpc-address.ns1.nn2</name> <value>hadoop-senior02 :8485;hadoop-senior02.ibeifeng.com:8485;hadoop-senior03.ibeifeng.com:8485/ns1</value> </property> 指定并创建日志节点存储的位置路径 :2181,hadoop-senior02.ibeifeng.com:2181,hadoop-senior03.ibeifeng.com:2181</value> </property> 上的namenode,active的节点变成hadoop-senior02。 :2181,hadoop-senior02.ibeifeng.com:2181,hadoop-senior03.ibeifeng.com:2181</value> </property>

    63660

    【Kafka】Kafka的代码实现及与Flume的集成

    $ cd /opt/cdh-5.3.6/flume-1.5.0-cdh5.3.6/conf conf]$ touch test1.conf [beifeng@bigdata-senior conf] :9092,bigdata-senior.ibeifeng.com:9093,bigdata-senior.ibeifeng.com:9094,bigdata-se nior.ibeifeng.com: .sources.r2.topic = beifeng0 a2.sources.r2.groupId = flume a2.sources.r2.zookeeperConnect = bigdata-senior.ibeifeng.com :9092,bigdata-senior.ibeifeng.com:9093,bigdata-senior.ibeifeng.com:9094,bigdata-senior.ibeifeng.com:9095 :9092,bigdata-senior.ibeifeng.com:9093,bigdata-senior.ibeifeng.com:9094,bigdata-senior.ibeifeng.com:9095

    57920

    【ZooKeeper】ZooKeeper架构及单机和分布式环境搭建

    :2888:3888 server.2=hadoop-senior02.ibeifeng.com:2888:3888 server.3 =hadoop-senior03.ibeifeng.com:2888:3888 在/opt/app/zookeeper-3.4.5/data/zkData中vim myid -3.4.5 [beifeng@hadoop-senior zookeeper-3.4.5]$ scp -r .. /zookeeper-3.4.5/ hadoop-senior02.ibeifeng.com:/opt/app/ [beifeng@hadoop-senior zookeeper /zookeeper-3.4.5/ hadoop-senior03.ibeifeng.com:/opt/app/ (4)分发到其他节点后,修改/opt/app/zookeeper-3.4.5

    28340

    520没对象?那来学下Python类与对象

    class Senior(Students): pass #打印类属性 print(Senior.people) #调用study方法 Senior().study() 子类重写父类的方法 class Senior(Students): who = "高中生" def study(self): print("高中生要学习") print(Senior.people) Senior().study() 类方法和静态方法 下面重新创建一个Students类。

    15942

    【Hadoop 分布式部署 二:分布式环境预备工作(主机名 IP地址等设置)】

    地址之间的映射关系就行         配置映射             /etc/host             192.168.26.131 hadoop-senior.zuoyan.com hadoop-senior             192.168.26.132 hadoop-senior02 .zuoyan.com hadoop-senior             192.168.26.133 hadoop-senior03 .zuoyan.com hadoop-senior 每台主机都需要配置 验证是否配置成功,每台机器之间进行ping 主机名 看是否能ping通,如果成功

    42120

    扫码关注腾讯云开发者

    领取腾讯云代金券