gcovr 安装_Kudu 1.8.0 编译安装配置

安装环境:CentOS6.8*3

解决系统依赖:

yum install autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain flex gcc gcc-c++ gdb git java-1.8.0-openjdk-devel krb5-server krb5-workstation libtool make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common which -y

下载kudu-1.8.0源码包(官方下载或GitHub下载都可以)

注意:可以从官网下载tar包安装,直接解压缩,然后从下边编译程序依赖并构建kudu安装配置开始

cd /data

git clone https://github.com/apache/kudu

cd kudu

build-support/enable_devtoolset.sh

这一步出现错误:Unable to open /etc/scl/prefixes/devtoolset-3!

解决办法:sudo yum upgrade scl-utils

yum install centos-release-scl -y

下载程序依赖

mkdir thirdparty/src/

cd thirdparty/src/

wget http://d3dr9sfxru4sde.cloudfront.net/glog-0.3.5.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/googletest-release-1.8.0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/gflags-2.2.0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/gperftools-2.6.90.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/protobuf-3.4.1.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/cmake-3.9.0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/snappy-1.1.4.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/zlib-1.2.8.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/libev-4.20.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/rapidjson-0.11.zip

wget http://d3dr9sfxru4sde.cloudfront.net/squeasel-9335b81317a6451d5a37c5dc7ec088eecbf68c82.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/mustache-87a592e8aa04497764c533acd6e887618ca7b8a8.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/google-styleguide-7a179d1ac2e08a5cc1622bec900d1e0452776713.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/gcovr-3.0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/curl-7.59.0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/crcutil-42148a6df6986a257ab21c80f8eca2e54544ac4d.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/libunwind-1.3-rc1.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/python-2.7.13.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/llvm-6.0.0-iwyu-0.9.src.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/lz4-lz4-r130.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/bitshuffle-55f9b4c.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/kudu-trace-viewer-21d76f8350fea2da2aa25cb6fd512703497d0c11.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/nvml-1.1.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/boost_1_61_0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/breakpad-9eac2058b70615519b2c4d8c6bdbfca1bd079e39.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/sparsehash-c11-47a55825ca3b35eab1ca22b7ab82b9544e32a9af.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/sparsepp-824860bb76893d163efbcff330734b9f62eecb17.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/thrift-0.11.0.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/bison-3.0.4.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/hive-498021fa15186aee8b282d3c032fbd2cede6bec4-stripped.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/hadoop-2.8.5-stripped.tar.gz

wget http://d3dr9sfxru4sde.cloudfront.net/apache-sentry-2c9a927a9e87cba0e4c0f34fc0b55887c6636927-bin.tar.gz

编译程序依赖并构建kudu安装配置

cd ../../

thirdparty/build-if-necessary.sh

# 这个命令会把上面下载的依赖全部安装执行Kudu的./configura

创建编译后的安装目录

mkdir build/release -p

cd build/release/

../../build-support/enable_devtoolset.sh

编译kudu并安装

../../thirdparty/installed/common/bin/cmake -DCMAKE_BUILD_TYPE=release ../..

make -j4

make DESTDIR=/data/kudu/build/release/kudu install

对lib文件做软链接

ln -s /data/kudu/build/release/kudu/usr/local/include/* /usr/local/include/

ln -s /data/kudu/build/release/kudu/usr/local/lib64/* /usr/local/lib64/

ln -s /data/kudu/build/release/kudu/usr/local/share/* /usr/local/share/

创建配置文件

======== MASTER ========

mkdir conf

cd conf

cat >>master.gflagfile<

## Comma-separated list of the RPC addresses belonging to all Masters in this cluster.

## NOTE: if not specified, configures a non-replicated Master.

--master_addresses=kudu1:7051,kudu2:7051,kudu3:7051

--rpc_bind_addresses=kudu1:7051

--log_dir=/data/kudu_data/master/logs

--log_filename=kudu1

--fs_wal_dir=/data/kudu_data/master/wal

--fs_data_dirs=/data/kudu_data/master/data

--enable_process_lifetime_heap_profiling=true

--heap_profile_path=/data/kudu_data/master/heap

--rpc-encryption=disabled

--rpc_authentication=disabled

#--unlock_unsafe_flags=true

#--allow_unsafe_replication_factor=true

#--max_log_size=1800

--max_log_size=2048

#--memory_limit_hard_bytes=0

--memory_limit_hard_bytes=1073741824

--default_num_replicas=3

--max_clock_sync_error_usec=10000000

--consensus_rpc_timeout_ms=30000

--follower_unavailable_considered_failed_sec=300

--leader_failure_max_missed_heartbeat_periods=3

#--block_manager_max_open_files=10240

#--server_thread_pool_max_thread_count=-1

--tserver_unresponsive_timeout_ms=60000

--rpc_num_service_threads=10

--max_negotiation_threads=50

--min_negotiation_threads=10

--rpc_negotiation_timeout_ms=3000

--rpc_default_keepalive_time_ms=65000

#--rpc_num_acceptors_per_address=1

--rpc_num_acceptors_per_address=5

#--master_ts_rpc_timeout_ms=30000

--master_ts_rpc_timeout_ms=60000

#--remember_clients_ttl_ms=60000

--remember_clients_ttl_ms=3600000

#--remember_responses_ttl_ms=60000

--remember_responses_ttl_ms=600000

#--rpc_service_queue_length=50

--rpc_service_queue_length=1000

#--raft_heartbeat_interval_ms=500

--raft_heartbeat_interval_ms=60000

#--heartbeat_interval_ms=1000

--heartbeat_interval_ms=60000

--heartbeat_max_failures_before_backoff=3

## You can avoid the dependency on ntpd by running Kudu with --use-hybrid-clock=false

## This is not recommended for production environment.

## NOTE: If you run without hybrid time the tablet history GC will not work.

## Therefore when you delete or update a row the history of that data will be kept

## forever. Eventually you may run out of disk space.

--use_hybrid_clock=false

--webserver_enabled=true

--metrics_log_interval_ms=60000

--webserver_port=8051

#--webserver_doc_root=/data/kudu/www

EOF

======== TSERVER =========

cat >>tserver.gflagfile<

## Comma-separated list of the RPC addresses belonging to all Masters in this cluster.

## NOTE: if not specified, configures a non-replicated Master.

--tserver_master_addrs=kudu1:7051,kudu2:7051,kudu3:7051

--rpc_bind_addresses=kudu:7050

--log_dir=/data/kudu_data/tserver/logs

--log_filename=kudu1

--fs_wal_dir=/data/kudu_data/tserver/wal

--fs_data_dirs=/data/kudu_data/tserver/data

--enable_process_lifetime_heap_profiling=true

--heap_profile_path=/data/kudu_data/tserver/heap

--rpc-encryption=disabled

--rpc_authentication=disabled

#--unlock_unsafe_flags=true

#--allow_unsafe_replication_factor=true

#--max_log_size=1800

--max_log_size=2048

#--memory_limit_hard_bytes=0

--memory_limit_hard_bytes=1073741824

--default_num_replicas=3

--max_clock_sync_error_usec=10000000

--consensus_rpc_timeout_ms=30000

--follower_unavailable_considered_failed_sec=300

--leader_failure_max_missed_heartbeat_periods=3

#--block_manager_max_open_files=10240

#--server_thread_pool_max_thread_count=-1

--tserver_unresponsive_timeout_ms=60000

--rpc_num_service_threads=10

--max_negotiation_threads=50

--min_negotiation_threads=10

--rpc_negotiation_timeout_ms=3000

--rpc_default_keepalive_time_ms=65000

#--rpc_num_acceptors_per_address=1

--rpc_num_acceptors_per_address=5

#--master_ts_rpc_timeout_ms=30000

--master_ts_rpc_timeout_ms=60000

#--remember_clients_ttl_ms=60000

--remember_clients_ttl_ms=3600000

#--remember_responses_ttl_ms=60000

--remember_responses_ttl_ms=600000

#--rpc_service_queue_length=50

--rpc_service_queue_length=1000

#--raft_heartbeat_interval_ms=500

--raft_heartbeat_interval_ms=60000

#--heartbeat_interval_ms=1000

--heartbeat_interval_ms=60000

--heartbeat_max_failures_before_backoff=3

## You can avoid the dependency on ntpd by running Kudu with --use-hybrid-clock=false

## This is not recommended for production environment.

## NOTE: If you run without hybrid time the tablet history GC will not work.

## Therefore when you delete or update a row the history of that data will be kept

## forever. Eventually you may run out of disk space.

--use_hybrid_clock=false

--webserver_enabled=true

--metrics_log_interval_ms=60000

--webserver_port=8050

#--webserver_doc_root=/data/kudu/www

EOF

配置系统systemd启动

========= MASTER =========

cat >>/usr/lib/systemd/system/kudu-master.service<

[Unit]

Description=Apache Kudu Master Server

Documentation=http://kudu.apache.org

[Service]

Environment=KUDU_HOME=/data/kudu

ExecStart=/data/kudu/build/release/bin/kudu-master --flagfile=/data/kudu/build/release/conf/master.gflagfile

TimeoutStopSec=5

Restart=on-failure

User=kudu

#LimitNOFILE=65535

#LimitNPROC=10240

[Install]

WantedBy=multi-user.target

EOF

========= TSERVER =========

cat >>/usr/lib/systemd/system/kudu-tserver.service<

[Unit]

Description=Apache Kudu Master Server

Documentation=http://kudu.apache.org

[Service]

Environment=KUDU_HOME=/data/kudu

ExecStart=/data/kudu/build/release/bin/kudu-tserver --flagfile=/data/kudu/build/release/conf/tserver.gflagfile

TimeoutStopSec=5

Restart=on-failure

User=kudu

#LimitNOFILE=65535

#LimitNPROC=10240

[Install]

WantedBy=multi-user.target

EOF

创建进程用户

useradd kudu

创建数据目录(根据配置文件创建)

mkdir /data/kudu_data/{master,tserver}/{data,wal,logs,heap} -p

chown -R kudu.kudu /data/kudu_data/

chown -R kudu.kudu /data/kudu/

cd /data

配置环境

cat >>/etc/profile<

export PATH=${PATH}:/data/kudu/build/release/bin

EOF

source /etc/profile

启动程序

systemctl start kudu-master.service

systemctl start kudu-tserver.service

创建数据表测试

# 使用以下控制台程序创建数据表

# kudu-shell-1.0-SNAPSHOT.jar

cat >>kudu-shell.sh<

#!/usr/bin/env bash

java -cp ./kudu-shell-1.0-SNAPSHOT.jar org.laowang.kudushell.Main -s kudu:7050,kudu:7051,kudu:7052

EOF

chown kudu.kudu kudu-shell-1.0-SNAPSHOT.jar

kudu-shell.sh

su - kudu

sh kudu-shell.sh

建表语句

CREATE TABLE test(

id string,

partition_month string,

contract_no string,

customer_name string,

product_root_name string,

product_category_name string,

business_mode_name string,

fee_flag string,

transaction_date string,

serial_no string,

client_date string,

bank_name string,

bank_serial_no string,

business_type string,

identity_no string,

pay_date string,

repayment_amount string,

indeed_pre_fee string,

indeed_amount string,

pre_fee_penalty string,

status string,

trust_company_name string,

trust_plan_name string,

clear_date string,

branch_name string,

before_clear string,

after_clear string,

data_month string,

custody_flag string,

print_contime string,

cash_subject string,

original_bank_serial string,

voucher_no string,

lease_way string,

remark string,

primary key(id, partition_month)

)

PARTITION BY HASH(partition_month) PARTITIONS 4;

Rebalance测试

如果想测试 rebalance,可以先配置 3 个 tserver 节点,多建几张表;再添加 1 个或 2 个 tserver 节点,执行以下 rebalance 命令进行数据均衡:

kudu cluster rebalance kudu:7050,kudu:7051,kudu:7052

执行以下命令对指定表进行数据均衡:

kudu cluster rebalance --tables test,test1 kudu:7050,kudu:7051,kudu:7052

查看kudu集群状态

[kudu@localhost ~]$ kudu cluster ksck kudu:7050,kudu:7051,kudu:7052

Master Summary

UUID | Address | Status

----------------------------------+-----------+---------

5378708b53dc49cf9d8c0dd20e8a14f0 | kudu:7050 | HEALTHY

791d7511e2384e2a9f530f343f7c14f2 | kudu:7052 | HEALTHY

b5f447fde73a4426939152e5c9c5ea07 | kudu:7051 | HEALTHY

Flag | Value | Tags | Master

------------------+-------+--------+-------------------------

use_hybrid_clock | false | hidden | all 3 server(s) checked

Tablet Server Summary

UUID | Address | Status

----------------------------------+--------------------+---------

7bd88f7cbd8947f5a4c440874240a026 | 10.143.252.21:7056 | HEALTHY

9d93d1b805834e899a4535d285c8372d | 10.143.252.21:7053 | HEALTHY

b9d7e065ad8347a983bcfb4e5c058c44 | 10.143.252.21:7055 | HEALTHY

ce477c4f2cbd423c898078d34216b966 | 10.143.252.21:7054 | HEALTHY

e67d662ff0da4b6d97741b7a8ec67682 | 10.143.252.21:7057 | HEALTHY

Flag | Value | Tags | Tablet Server

------------------+-------+--------+-------------------------

use_hybrid_clock | false | hidden | all 5 server(s) checked

Version Summary

Version | Servers

---------+-------------------------

1.8.0 | all 8 server(s) checked

Summary by table

Name | RF | Status | Total Tablets | Healthy | Recovering | Under-replicated | Unavailable

-------+----+---------+---------------+---------+------------+------------------+-------------

test | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test1 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test2 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test3 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test4 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test5 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test6 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test7 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

test8 | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0

| Total Count

----------------+-------------

Masters | 3

Tablet Servers | 5

Tables | 9

Tablets | 36

Replicas | 108

==================

Warnings:

==================

Some masters have unsafe, experimental, or hidden flags set

Some tablet servers have unsafe, experimental, or hidden flags set

OK

查看master节点

[kudu@localhost ~]$ kudu master list kudu:7050,kudu:7051,kudu:7052

uuid | rpc-addresses

----------------------------------+--------------------

5378708b53dc49cf9d8c0dd20e8a14f0 | 10.143.252.21:7050

b5f447fde73a4426939152e5c9c5ea07 | 10.143.252.21:7051

791d7511e2384e2a9f530f343f7c14f2 | 10.143.252.21:7052

查看tserver节点

[kudu@localhost ~]$ kudu tserver list kudu:7050,kudu:7051,kudu:7052

uuid | rpc-addresses

----------------------------------+--------------------

e67d662ff0da4b6d97741b7a8ec67682 | 10.143.252.21:7057

7bd88f7cbd8947f5a4c440874240a026 | 10.143.252.21:7056

b9d7e065ad8347a983bcfb4e5c058c44 | 10.143.252.21:7055

ce477c4f2cbd423c898078d34216b966 | 10.143.252.21:7054

9d93d1b805834e899a4535d285c8372d | 10.143.252.21:7053

查看数据表

[kudu@localhost ~]$ kudu table list kudu:7050,kudu:7051,kudu:7052

test1

test5

test6

test2

test

test3

test4

test8

test7

查看表分区分布情况

[kudu@localhost ~]$ kudu table list -tables test -list-tablets kudu:7050,kudu:7051,kudu:7052

test

T 9cb2ec3477134d0396e33ab7acbb3545

L b9d7e065ad8347a983bcfb4e5c058c44 10.143.252.21:7055

V 9d93d1b805834e899a4535d285c8372d 10.143.252.21:7053

V 7bd88f7cbd8947f5a4c440874240a026 10.143.252.21:7056

T 4f24e4a009914ef7ba8d4352c12aaf63

L 9d93d1b805834e899a4535d285c8372d 10.143.252.21:7053

V e67d662ff0da4b6d97741b7a8ec67682 10.143.252.21:7057

V 7bd88f7cbd8947f5a4c440874240a026 10.143.252.21:7056

T 66d9ede2ba774f0787f7e07bc79223cf

L b9d7e065ad8347a983bcfb4e5c058c44 10.143.252.21:7055

V ce477c4f2cbd423c898078d34216b966 10.143.252.21:7054

V 7bd88f7cbd8947f5a4c440874240a026 10.143.252.21:7056

T a6d7bbb5e6ad45208dc794d7352eb1e4

V 9d93d1b805834e899a4535d285c8372d 10.143.252.21:7053

V ce477c4f2cbd423c898078d34216b966 10.143.252.21:7054

L e67d662ff0da4b6d97741b7a8ec67682 10.143.252.21:7057

以上是常用基本操作,更多的操作执行 kudu --help 自行查看

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/434845.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

关于Outlook删除原邮箱邮件的解决办法

最近需要用邮件多一些&#xff0c;就配置了一下Outlook客户端&#xff0c;配置的时候一般直接点下一步&#xff0c;自动配置就可以了&#xff0c;我也试过手动配置&#xff0c;解决老是出问题。别说&#xff0c;Outlook用起来还是相当方便的&#xff0c;不用每次都打开浏览器输…

解决MAPGIS导出数据乱码

所需软件&#xff1a; MAPGIS6.7 MAPGIS10版本以上 MAPGIS开发入门向导手册.zip-行业报告文档类资源-CSDN下载MAPGIS开发入门向导手册.zip更多下载资源、学习资料请访问CSDN下载频道.https://download.csdn.net/download/qq_39397927/85321238ArcGIS 问题描述 在mapgis中的…

r语言中的或怎么表示什么不同_s语言和r语言有什么区别

展开全部一、用法不同1、S语言&#xff1a;S语言用来进行数据探索、统计分析、作图的解释型语62616964757a686964616fe58685e5aeb931333431366261言。2、R语言&#xff1a;R是自由软件&#xff0c;是一种可编程的语言。二、开发人员不同1、S语言&#xff1a;语言是由AT&T贝…

AsyncTask的用法

在开发Android应用时必须遵守单线程模型的原则&#xff1a; Android UI操作并不是线程安全的并且这些操作必须在UI线程中执行。在单线程模型中始终要记住两条法则&#xff1a; 1. 不要阻塞UI线程 2. 确保只在UI线程中访问Android UI工具包 当一个程序第一次启动时&#x…

突破select的FD_SETSIZE限制

前言&#xff1a; 在很多比较各种网络模型的文章中&#xff0c;但凡提到select模型时&#xff0c;都会说select受限于轮询的套接字数量&#xff0c;这个 数量也就是系统头文件中定义的FD_SETSIZE值(例如64)。但事实上这个算不上真的限制。 C语言的偏方&#xff1a; 在C语…

袋装树和随机森林的区别

装袋法建树的时候是将所有预测变量都考虑进去&#xff0c; 而随机森林则是考虑每一个分裂点时&#xff0c;都是从所有的预测变量p中随机选取m个预测变量&#xff0c;分裂点所用的预测变量只能从这m个变量中选择。

如何导入maven源文件_如何正确导入maven项目到eclipse?

Eclipse不允许一个项目被导入不止一次,在您的情况下,来自中继线和分支.This article显示了如何通过自定义maven配置文件绕过此限制.基本上,步骤是&#xff1a;>将以下配置文件添加到您的父pom.xml中append-to-project-nameappend.to.project.namemaven-eclipse-plugin[artif…

画廊效果

http://www.no3dfx.com/polaroid/ 转载于:https://www.cnblogs.com/bearhb/archive/2011/10/12/2208162.html

python镜像

Python国内镜像地址&#xff1a; 1.阿里云&#xff1a;https://mirrors.aliyun.com/pypi/simple/ 2.豆瓣&#xff1a;https://pypi.douban.com/simple/ 3.清华大学&#xff1a;https://pypi.tuna.tsinghua.edu.cn/simple/ 4.中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/…

socket 编程入门教程(一)TCP server 端:3、sockaddr与sockaddr_in

收件人地址一家化妆品公司将一批新产品的样品&#xff0c;准备发给某学校某个班的女生们免费试用。通常情况下&#xff0c;这件邮包的地址上可以这么写&#xff1a;收件人&#xff1a;全体女生。 地址&#xff1a;A省B市C学校&#xff0c;X级Y班。但是&#xff0c;如果在描述地…

python语言为什么叫python_Python为什么叫Python,Java又如何而来?

你可能听过这样一种说法&#xff1a;在计算机科学领域&#xff0c;只有两件困难的事情&#xff0c;其中一件是给事物命名。有些编程语言的名字很有意义&#xff0c;比如谷歌(Google)将它的编程语言命名为Go(lang)&#xff0c;而其他的名字——比如Python和Java——为什么要这么…

arcgis中的SetNull(,)函数使用

SetNull(设置条件&#xff0c;将条件之内的值变为nodata,条件之外的值处理) 例如&#xff1a; 1.setnull("DEM"500,"DEM"),将DEM中值为500的数据赋为空&#xff0c;其他保留原值 2.setnull("DEM">500,"DEM"),将DEM中值大于500的…

pyqt5设置dialog的标题_PyQt5快速上手基础篇7-弹出dialog

前言本节我们学习QDialog的使用&#xff0c;在主页面点击按钮弹出一个新的Dialog。一、基础知识1. dialog简介窗口是GUI设计中不可获取的一部分&#xff0c;方便用户和程序直接交互&#xff0c;简化使用&#xff1b;Qdialog主要包含QInputDialog、QColorDialog、QFontDialog、Q…

67、ulimit的使用

1、ulimit set or get the shells resource usage limits ulimit [OPTIONS] [LIMIT] 2、option ① -a 显示当前所有的资源限制。 ② -c size:设置core文件的最大值。单位:blocks ③ -n size 指定同一时间最多可开启的文件数 ④ -l size:设置在内存中锁定进程的最大值。单位:KB…

如何处理MODIS蒸散数据(ET)中的填充值(仅作参考)

该处理过程是个人想法&#xff0c;仅做参考&#xff0c;如果想要等到比精确的蒸散数据请参考《京津唐地区城市扩张对地表蒸散发的影响》中蒸散的计算过程。 MOD16A3 第 6 版蒸发蒸腾/潜热通量产品是按 500 米 (m) 像素分辨率生成的年度复合数据集。 根据《京津唐地区城市扩张对…

winform定义数据源名称_winform ComboBox自定义数据源实现用户输入时出现与用户输入匹配的项...

ComboBox自定义数据源实现用户输入时出现与用户输入匹配的项using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace _2012_11_15Pra…

如何计算栅格有效值范围内的统计值(最大值,最小值,平均值,方差)

大致思路&#xff1a; 1.将无效值设置为空(nodata) 2.对栅格进行计算 使用数据为&#xff1a;modis的蒸散数据&#xff08;有效值范围为0 至 65500&#xff0c;填充值范围为65529 至 65535&#xff09; 步骤 1&#xff0c;利用栅格计算器将填充值进行设置为空 结果 2计算栅…

RMAN 备份报错 RMAN-06207 RMAN-06208 解决方法

新搭建的环境&#xff0c;还没上线&#xff0c;今天在部署脚本&#xff0c;RMAN 备份中有一个警告&#xff0c;内容如下&#xff1a;RMAN-06207: WARNING: 1 objects could not bedeleted for DISK channel(s) dueRMAN-06208: to mismatched status. Use CROSSCHECK …

用python画明星_用python画一只可爱的皮卡丘实例

效果图片# !\/usr\/bin\/env python # - * -编码:utf - 8 - *\u2014\u2014从龟进口*\u201C画皮卡丘的头\u201Cdef的脸(x, y):\u201D\u201C画脸\u201D\u201Cbegin_fill () penup () # goto乌龟移动到指定的坐标(x, y) pendown() #设置的方向龟setheading(40)圆(-150、69)fillcol…

socket 编程入门教程(一)TCP server 端:1、建模

绝大部分关于socket编程的教程总是从socket的概念开始讲起的。要知道&#xff0c;socket的初衷是个庞大的体系&#xff0c;TCP/IP只是这个庞大体系下一个很小的子集&#xff0c;而我们真正能用上的更是这个子集中的一小部分&#xff1a;运输层&#xff08;Host-to-Host Transpo…