首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Hadoop数据仓库

    基于 HBase & Phoenix 构建实时数仓(4)—— Kafka 集群安装部署

    3 # 创建三分区三副本主题 kafka-topics.sh --bootstrap-server node2:9092,node3:9092,node4:9092 --create --topic test topic test-1 kafka-topics.sh --bootstrap-server node2:9092,node3:9092,node4:9092 --describe --topic test : Topic: test-3 Partition: 0 Leader: 1 Replicas: 1,0,2 Isr: 1,0,2 Topic: test-3 Partition: 1 Leader: 0 Replicas: 0,2,1 Isr: 0,2,1 Topic: test-3 Partition: 2 Leader 测量 kafka 三分区生产者吞吐量 kafka-producer-perf-test.sh --topic test-3 --num-records 500000 --record-size 2048

    51710编辑于 2024-03-12
  • 来自专栏机器学习与系统

    使用 Act 本地运行 GitHub Actions

    1] docker pull image=adolphlwq/act-runner-ubuntu:22.04 platform= username= forcePull=true [test/test /act-runner-ubuntu:22.04 platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host" [test/test /act-runner-ubuntu:22.04 platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host" [test/test [] network="host" [test/test-1] ☁ git clone 'https://github.com/actions/setup-go' # ref=v5 [test/test -3] Non-terminating error while running 'git clone': some refs were not updated [test/test-3] ☁ git

    2.7K10编辑于 2024-07-02
  • 来自专栏CodeGuide | 程序员编码指南

    《程序员数学:最小公倍数》—— stackoverflow.com 提问:“如何计算最小公倍数”?

    Long>() {{ add(key); }}); } System.out.print("执行表格计算:\r\nx "); long primality = 2, cachePrimality = primality, filterCount = 0, lcm = 1; // 以所有元素最后一位为1作为条件 while (filterCount value == 1) { filterCount++; } // 整除处理 if (value % primality == 0) { entry.getValue().add(value / primality); refresh++; } entry.getValue().remove(entry.getValue().size() - 1); } primality

    1.1K10编辑于 2022-12-13
  • 来自专栏各类技术文章~

    应用重启正在执行的任务会如何处理?

    应用pid 复制代码 2.3.5 现象 Exception in thread "test-2" Exception in thread "test-1" Exception in thread "test com.boot.example.ShutDownController : task execute complete... 2021-12-09 17:09:40.055 INFO 22383 --- [ test com.boot.example.ShutDownController : task execute complete... 2021-12-09 17:09:50.059 INFO 22383 --- [ test com.boot.example.ShutDownController : task execute complete... 2021-12-09 17:10:00.065 INFO 22383 --- [ test

    1.3K10编辑于 2021-12-09
  • 来自专栏smh的技术文章

    sass的基础用法

    height: 10px; background-color: gray; } .test-2 { height: 20px; background-color: gray; } .test

    64430发布于 2020-07-23
  • 来自专栏python3

    初学linux系统管理3

    或者安装相同的软件,可以使用如下两种方法: 实验环境,有9台RHEL5.5_x64的主机,host表如下: test-1        10.9.1.1 test-2         10.9.1.2 test 默认的组,也可以使用-g参数指定不同的主机组         @test group test ()         +test-1         +test-2         +test

    1.8K10发布于 2020-01-08
  • 来自专栏福大大架构师每日一题

    2020-09-20:如何判断一个数是质数?

    费尔马素性测试法(Fermat primality test) 可能会把合数误判为质数。 Args: num: 大于等于2并且是整数。

    1K10发布于 2020-09-20
  • 来自专栏iSharkFly

    如何用 Java 判断一个给定的数是不是素数

    这个问题你可能需要了解下 米勒-拉宾检验( Miller–Rabin primality test) 这个东西。 米勒-拉宾素性检验是一种素数判定法则,利用随机化算法判断一个数是合数还是可能是素数。

    1.4K10发布于 2021-09-24
  • 来自专栏Fdu弟中弟

    java-大整数

    for(int i = 0;i<n;i++){ System.out.println(s[i]); } } } ---- 原题链接:Java Primality

    82430发布于 2021-02-24
  • 来自专栏窗户

    RSA简介(三)——寻找质数

    是质数,x是正整数,x2%p=1,那么x%p=1或者x%p=p-1   完整描述Miller-Rabin算法如下:(https://en.wikipedia.org/wiki/Miller–Rabin_primality_test

    1.4K70发布于 2018-02-07
  • 来自专栏Go语言学习专栏

    Go语言中的并行表驱动测试

    tests := []struct { name string }{ {"test-1"}, {"test-2"}, {"test

    8710编辑于 2026-03-17
  • 来自专栏踏歌行的专栏

    kafka_2.11-2.0.0_常用操作

    53 test-1 7 drwxrwxr-x 2 yun yun 141 Sep 15 18:53 test-2 8 drwxrwxr-x 2 yun yun 141 Sep 15 18:53 test 53 test-0 7 drwxrwxr-x 2 yun yun 141 Sep 15 18:53 test-1 8 drwxrwxr-x 2 yun yun 141 Sep 15 18:53 test

    96121发布于 2020-10-15
  • 来自专栏机器之心

    资源 | 从算法到数据结构,百道面试问题实现答案集合

    Water Problem):http://suo.im/1gWPQG 爱拉托逊新筛法(Sieve of Eratosthenes):http://suo.im/Pi0G7 费马素数(Fermat's primality

    86060发布于 2018-05-07
  • 来自专栏网络安全技术点滴分享

    RSA密钥生成基准测试深度解析

    名为《Prime and Prejudice: Primality Testing Under Adversarial Conditions》由Albrecht等人完成的论文展示了一些有趣的技巧,但主要技巧归结为观察

    23310编辑于 2025-10-14
  • 来自专栏Java工程师成长之路

    《Quarkus实战》总结

    用来记录方法调用时长 综合案例 @Timed(name = "checksTimer", description = "A measure how long it takes to perform the primality @Metered(name = "helloMetered") @Counted(name = "performedChecks", description = "How many primality

    3.1K10编辑于 2022-12-29
  • 来自专栏程序员成长指北

    Js是怎样运行起来的?

    'bar-B' this[50] = 'test-50' this[9] = 'test-9' this[8] = 'test-8' this[3] = 'test console.log(`index:${key} value:${bar[key]}`) } 打印出来的结果如下: index:1 value:test-1 index:3 value:test

    3.5K21发布于 2021-09-18
  • 来自专栏linux技术分享

    docker浅入深出续

    $ docker run -d --name test-3 nginx:alpine echo 123 $ docker run -d --name test-4 nginx:alpine ping

    94181发布于 2020-08-28
  • 来自专栏无限可能的程序开发

    V8中的快慢属性(图文分解更易理解)

    this["B"] = 'foo-B' this[50] = 'test-50' this[9] = 'test-9' this[8] = 'test-8' this[3] = 'test

    66030编辑于 2022-09-23
  • 来自专栏老安的博客

    openstack octavia 简介以及手工安装过程

    test [root@controller ~]# openstack server list |grep test- | d8dc22d4-e657-4c54-96f9-3a53ca67533d | test Permanently added '192.168.123.10' (RSA) to the list of known hosts. cirros@192.168.123.10's password:  test

    5.1K41发布于 2018-07-06
  • 来自专栏机器之心

    17岁高中生证明数学界存在27年难题,「他的论文值得任何数学家为之自豪」

    一个多世纪以前,在寻求快速、强大的素性测试 (Primality test) 过程中,数学家偶然发现了一些麻烦——有些数不是素数,也会让测试误以为它们是素数。这些被称为卡迈克尔数的伪素数特别难以掌握。

    64920编辑于 2022-12-15
领券