青岛开病假请假单-开住院证明→薇訫btw988、connectString=hadoop01:2181,hadoop02:2181,hadoop03:2181 sessionTimeout=90000 watcher=org.apache.hadoop.hbase.zookeeper.PendingWatcher@52815fa3 2019-11-26 16:53:35 647 INFO [main-SendThread(hadoop03:2181)] - Opening socket connection to server hadoop03/39.97.244.81:2181. Will not attempt to authenticate using SASL (unknown error) 2019-11-26 16:53:35 682 INFO [main-SendThread(hadoop03:2181)] - Socket connection established to hadoop03/39.97.244.81:2181, initiating session 2019-11-26 16:53:35 723 INFO [main-SendThread(hadoop03:2181)] - Session establishment complete on server hadoop03/39.97.244.81:2181, sessionid = 0x36e97710f17004c, negotiated timeout = 40000hlj@hlj-Inspiron-3568:~/hbase$ bin/start-hbase.sh localhost: running zookeeper, logging to /home/hlj/hbase/bin/…/logs/hbase-hlj-zookeeper-hlj-Inspiron-3568.out localhost: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”. localhost: SLF4J: Defaulting to no-operation (NOP) logger implementation localhost: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. running master, logging to /home/hlj/hbase/bin/…/logs/hbase-hlj-master-hlj-Inspiron-3568.out

hlj@hlj-Inspiron-3568:~/hbase$ bin/hbase shell HBase Shell Use “help” to get list of supported commands. Use “exit” to quit this interactive shell. For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell Version 2.0.5, r76458dd074df17520ad451ded198cd832138e929, Mon Mar 18 00:41:49 UTC 2019 Took 0.0030 seconds hbase(main):001:0> create ‘student’,‘Sname’,‘Ssex’,‘Sage’,‘Sdept’,‘course’

ERROR: KeeperErrorCode = NoNode for /hbase/master

Creates a table. Pass a table name, and a set of column family specifications (at least one), and, optionally, table configuration. Column specification can be a simple string (name), or a dictionary (dictionaries are described below in main help output), necessarily including NAME attribute. Examples:

Create a table with namespace=ns1 and table qualifier=t1 hbase> create ‘ns1:t1’, {NAME => ‘f1’, VERSIONS => 5}

Create a table with namespace=default and table qualifier=t1 hbase> create ‘t1’, {NAME => ‘f1’}, {NAME => ‘f2’}, {NAME => ‘f3’} hbase> # The above in shorthand would be the following: hbase> create ‘t1’, ‘f1’, ‘f2’, ‘f3’ hbase> create ‘t1’, {NAME => ‘f1’, VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} hbase> create ‘t1’, {NAME => ‘f1’, CONFIGURATION => {‘hbase.hstore.blockingStoreFiles’ => ‘10’}} hbase> create ‘t1’, {NAME => ‘f1’, IS_MOB => true, MOB_THRESHOLD => 1000000, MOB_COMPACT_PARTITION_POLICY => ‘weekly’}

Table configuration options can be put at the end. Examples:

hbase> create ‘ns1:t1’, ‘f1’, SPLITS => [‘10’, ‘20’, ‘30’, ‘40’] hbase> create ‘t1’, ‘f1’, SPLITS => [‘10’, ‘20’, ‘30’, ‘40’] hbase> create ‘t1’, ‘f1’, SPLITS_FILE => ‘splits.txt’, OWNER => ‘johndoe’ hbase> create ‘t1’, {NAME => ‘f1’, VERSIONS => 5}, METADATA => { ‘mykey’ => ‘myvalue’ } hbase> # Optionally pre-split the table into NUMREGIONS, using hbase> # SPLITALGO (“HexStringSplit”, “UniformSplit” or classname) hbase> create ‘t1’, ‘f1’, {NUMREGIONS => 15, SPLITALGO => ‘HexStringSplit’} hbase> create ‘t1’, ‘f1’, {NUMREGIONS => 15, SPLITALGO => ‘HexStringSplit’, REGION_REPLICATION => 2, CONFIGURATION => {‘hbase.hregion.scan.loadColumnFamiliesOnDemand’ => ‘true’}} hbase> create ‘t1’, {NAME => ‘f1’, DFS_REPLICATION => 1}

You can also keep around a reference to the created table:

hbase> t1 = create ‘t1’, ‘f1’

Which gives you a reference to the table named ‘t1’, on which you can then call methods.

Took 8.2418 seconds hbase(main):002:0> 原文链接:https://blog.csdn.net/Mr_Mocha/article/details/103332018
// b 会获取值的整数部分,小数部分会丢失
a / b 会返回完整的值
举个栗子:
5 // 2 = 2
5 / 2 = 2.5
1
2
3
4
5
那么问题来了? int(a/b) 和 a//b 的区别在哪里呢?
例1:
int(7/3)=2
7//3=2
1
2
3
既然如此讨论它们意义在上面地方呢?看看例二

例二:
int(999999999999999997/5)=200000000000000000
999999999999999997//5=199999999999999999
————————————————
版权声明:本文为CSDN博主「刀刃飞雪玉花」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/daorenfeixueyuhau/article/details/92800577

那么问题来了? int(a/b) 和 a//b 的区别在哪里呢? 例1:相关推荐

  1. int * p =NULL;和*p =NULL的区别a和a的区别

    1.int * p =NULL;和*p =NULL的区别 1 .int * p =NULL int *p=NULL: 定义一个指针变量p,其指向的内存里面保存的是int类型的数据:再定义变量p的同时把 ...

  2. 【贪玩巴斯】带你学:C++ tips ——知识点: C++整型short,int,long和long long的区别 2021年12月20日

    [贪玩巴斯]带你学:C++ tips --知识点: C++整型short,int,long和long long的区别 2021年12月20日 C++的整型有short,int,long和long lo ...

  3. Golang中int, int8, int16, int32, int64和uint区别

    Golang中int, int8, int16, int32, int64和uint区别 前言 测试 结果 结论 总结 前言 在学习go语言时,做算法题会很经常遇到go语言的各种int类型,为什么会有 ...

  4. 刨根问底儿 -- intVal($str) 跟 (int) $str 的运算结果有什么区别

    intVal($str) 跟 (int) $str 都是把其他类型的变量转化为int型变量的方式,这么多年来我一直森森滴怀疑它们的运算结果在某些条件下会有区别.对于我的疑问,文档里也没有多说(或者我没 ...

  5. C# 使用int.TryParse,Convert.ToInt32,(int)将浮点类型转换整数时的区别

    int.TryParse,Convert.ToInt32,(int) 这几种类型在将浮点类型转换整数时是有差别 Convert.ToInt32则会进行四舍五入 int.TryParse只能转换整数,即 ...

  6. int signed in mysql_【转】mysql 中int类型字段unsigned和signed的区别

    转自https://www.cnblogs.com/wangzhongqiu/p/6424827.html 用法: mysql> CREATE TABLE t ( a INT UNSIGNED, ...

  7. int *p=new int; int *p=new int[10]; int *p=new int(10);这三个有什么区别

    int p=new int;--分配一个int型变量所占大小的空间,并将首地址赋给int 型指针p. int p=new int[10];--分配一个有10个int型元素的数组所占空间,并将该数组的第 ...

  8. C#中(int)、Conver.Toint32()、int.Parse()三种类型转换方式的区别与联系--C#基础知识

    自己也是刚学习C#程序设计语言,总结了一点知识点,想分享给大家.毕竟刚学习这门语言,学得不深,哪里如果有错误,请帮个忙指出一下哈,谢谢! 1.(int)可用于单精度.双精度等其他数值类型的转换(到整型 ...

  9. C#中(int)、Conver.Toint32()、int.Parse()三种类型转换方式的区别

    1.(int)可用于单精度.双精度等其他数值类型的转换(到整型int),不能用于转换string类型转换为int类型,系统会报错,程序是不能运行. 注意:Double或Float被转换成int类型时, ...

最新文章

  1. 干货 | 目标检测技巧大汇总(含代码与解读)
  2. 一图读懂HDFS--大数据平台技术栈06
  3. python菜鸟教程官网绘图-NumPy Matplotlib
  4. ssd_detected.cpp代码 head.h代码
  5. 计算机系统win7安装教程,惠普EliteDesk 705 G3电脑安装win7系统方法
  6. 五万pv的小程序需要什么服务器,一个公式,告诉你PV千万的刷屏小程序都是怎么玩的...
  7. Java 字节数组的长度length
  8. VB UTF-8 URL编码函数
  9. Gitlab错误: You must use a personal access token with 'api' scope for Git over HTTP.
  10. java的重载 和重写
  11. python mmap_python标准库基础之mmap:内存映射文件
  12. 安装Matlab2016a中文破解版教程
  13. 锐起无盘服务器缓存,锐起无盘v0412(集成虚拟盘+SSD缓存+R2开包版)
  14. 智能合约语言 Solidity 教程系列3 - 函数类型
  15. 使用 Python 全栈打造淘宝客微信机器人(上)
  16. 硬盘分区时GPT和MBR的区别/选择
  17. 解读德国政府未来可能采用的加密即时通讯框架
  18. Ubuntu18.04安装分析
  19. c语言怎么判断一个目录下面的文件是否为隐藏文件,怎么能显示出隐藏文件?...
  20. I-SVM SVM增量学习

热门文章

  1. 华为天才少年谢凌曦:关于视觉识别领域发展的个人观点
  2. window专业版激活
  3. 主流平面设计软件推荐,实用工具推荐必坑指南!
  4. 基于javaweb的零食商城系统(java+ssm+jsp+mysql+easyui)
  5. GLES2.0中文API-glBindFramebuffer
  6. 计算机应用基础006在线作业2,东师《计算机应用基础》20春在线作业2答案00648
  7. 百度、谷歌、雅虎三大搜索引擎算法区别
  8. android l m8,HTC M8或于10月份升级Android L
  9. There is no setter for property named ‘id‘ in ‘class com.atguigu.mybatistest.entity.User‘
  10. Cisco AP 升级