我试图创建一个函数来计算退休基金所需的回报率。情况是这样的:退休人员在退休开始时有一个退休帐户的目标数额。他们也有一个目标提取金额,他们希望每年提取一个目标金额的年份。
例如:退休基金数额为1 000 000美元。每年提取10万美元,目标为15年。
我所写的代码如下:
Function RequiredReturn(retire_amnt, annual_spending, n_year)
Dim arr()
ReDim arr(0)
arr(0) = -retire_amnt
ReDim arr(1 To n_year)
For i = 1 T
流入shell具有-version标志,但不具有流入服务器:
/path/to/bin/influx -version
InfluxDB shell version: 1.1.1
/path/to/bin/influxd -version
flag provided but not defined: -version
/path/to/bin/influxd -v
flag provided but not defined: -v
我应该假设流入的shell和流入服务器总是有相同的版本吗?
我想搜索文本,其中包括指定的文字从流数据与谷歌云数据流。
详细地,我将处理以下两条流程。
流A:流的元素是“单词”
流B:流的元素是“文本”。每一篇课文都由“单词”组成。这篇文章可能在A流中有“单词”
许多“文本”经常流入B流。另一方面,“单词”偶尔流入A流。
当“单词”流入A流时,我想搜索“文本”,其中有“单词”,并在5分钟后流入B流。
示例
time stream A : stream B
00:01 - this is an apple
00:02 - this is an orange
00:03 - I have
在来自influxdb2的文档中,我获得了用于列出auth令牌的以下内容,但是对于流入命令行,它没有显示任何内容。
使用流入CLI的视图令牌使用流入列表命令查看令牌。
流入名单
但我明白:
~$ influx auth ls
Error: Unauthorized access.
See 'influx auth list -h' for help
~$ influx auth ls -h
List authorizations
Usage:
influx auth list [flags]
Aliases:
list, find, ls
Flags:
我是个新手。我刚开始读那些涌入的文件。
我似乎无法从表中获得“select count(*)”的等价物,从而在流入db中工作。
我有一种叫做cart的测量方法:
time status cartid
1456116106077429261 0 A
1456116106090573178 0 B
1456116106095765618 0 C
1456116106101532429 0 D
但当我试着做
select count(cartid) from cart
我知道错误了
ERR: stat
我想有一个从Logstash流入DB的输出,有这样的插件吗?
输出设置为石墨。这是内流配置:
[input_plugins]
# Configure the graphite api
[input_plugins.graphite]
enabled = true
port = 2003
database = "AirAnalytics" # store graphite data in this database
# udp_enabled = true # enable udp interface on the same port as the tcp interfac