Comments (2)
大神们好,我有个问题,用CsvSourceStreamOp方法读取csv后,csv内容变更后,print出来的内容没有更新。以下是我的代码,请大神帮忙解决一下,谢谢!
`#!/usr/bin/python-- coding: UTF-8 --
from pyalink.alink import *
import numpy as np
import pandas as pduseLocalEnv(1)
schemaStr = "A double, B double, C double, D double, label string"
path = "D:/program/Alink_script/data/iris2_1_stream.csv"
csvSource = CsvSourceStreamOp().setFilePath(path).setSchemaStr(schemaStr).setFieldDelimiter(",")
csvSource.print()
sample = SampleStreamOp().setRatio(0.01).linkFrom(csvSource)
sample.print(key="csvSource", refreshInterval=1)
StreamOperator.execute()`
你好,CSV不会读取新的内容。针对您的这个场景,建议使用消息队列,例如kafka。
from alink.
from alink.
Related Issues (20)
- 麻烦问下对flink 1.15版本有没有适配计划 HOT 2
- 使用alink的com.alibaba.alink.common.io.filesystem.FilePath download方法获取http文件出现IndexOutOfBoundsException
- 使用JsonValue读取json属性出现NoSuchMethodError异常 HOT 1
- pipeline执行步骤比较多时flink任务无法执行 HOT 1
- LinearSvm error:Labels count should be 2 in in linear classification algo. HOT 2
- 请问alink是否支持数据湖
- webui中CatalogSourceBatchOp中的参数catalogObject应该填什么格式? HOT 2
- Alink是否支持特征工程的一些流批处理,因为比如pca等算法好像没办法支持流批的增量处理,尤其是流处理 HOT 1
- IForestOutlierBatchOp进行异常检测时,输出结果顺序颠倒
- ProphetTrainBatchOp Error
- alink1.6.1版本pyalink连接mysql报空指针异常
- 本地可运行的alink脚本上传至flink服务器后会出现报错 HOT 5
- alink官网代码不能直接maven打包
- webUI导入csv数据报错是什么原因,参数格式正确。 HOT 1
- 项目停止了吗?怎么一点不活跃了? HOT 2
- 是否考虑支持Transformer模型? HOT 1
- 请问怎么在离线环境的Alink里面安装libtorch的库?
- 如果我的Flink集群是1.17,还能够集成Alink吗,有什么解决办法吗 HOT 2
- XLS 文件 HOT 1
- code injection vulnerability of com.alibaba.flink.ml.cluster.node.runner.python.ProcessPythonRunner.checkPythonEnvironment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alink.