Questions tagged [sink]

Command in the programming language R. Sends R Output to a connection.

Command in the R programming language. Sends R Output to a connection.

Related tags:

187 questions
0
votes
1 answer

Why sink operation execute multiple times in my flink program?

I have a flink program with source from kafka, and i opened three windowedStream:seconds, minutes,hours.Then sending window result to others by AsyncHttpSink extends RichSinkFunction.But i found that same window,one kafka message, same result may…
Flory Li
  • 167
  • 7
0
votes
1 answer

How to reboot application without losing the TreeMap kept in memory?

In a Spring Boot application, I keep a TreeMap in memory. I'm doing around 10,000 operations per second, and it may increase. To improve performance, I kept data in memory. I want my app to be able to start from the same state when application is…
T. Ç
  • 75
  • 1
  • 7
0
votes
1 answer

How does Flink sink behave when recovering from a savepoint?

Curious to know how elasticsearch sink connector behaves when a recovery from a savepoint on Flink is completed. Would it delete/update the documents on ES sink destination by reverting the commits up to the point of savepoint time or should some…
Hako
  • 361
  • 1
  • 2
  • 9
0
votes
1 answer

Pass parameter in BLoC pattern Flutter(Stream Controller)

I am new to Flutter and not sure if this is the right method to follow. I am following YouTube tutorial to create a movie app using TMDB API and trying to pass 'genreId' from category.dart(comment below) to MovieBloc.dart. Is it possible to send the…
atigdawgahb
  • 41
  • 1
  • 5
0
votes
1 answer

Flink Kafka SInk Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: Attempted to write a non-default producerId at version 1

version: cdh(6.2.1),flink(1.13.1), kafka(2.1.0-cdh6.2.1) data pipeline: kafka(source) -> flink -> kafka(sink) The submitted Job is running normally. After I savepoint, an exception occurs when I restore it through savepoint. 2021-11-22 16:39:52,556…
0
votes
0 answers

no results when applying flink tumble window in flink table api

I have the same problem when I study https://nightlies.apache.org/flink/flink-docs-release-1.14/zh/docs/try-flink/table_api/. When I use tumble window, I got nothing in MySQL sink. return transactions …
王京东
  • 401
  • 4
  • 3
0
votes
0 answers

Questions for "sink", "capture output" function, in R - result doesn't come out using loop. why?

I have two questions regarding to exporting results to txt file. First is, getting empty text file when using "sink" function with loop. result is lists - summary(aov.res) code below did make six text files, but nothing inside(empty text file). i =…
KELPman
  • 13
  • 3
0
votes
1 answer

sink produces weird characters

I am using sink to paste my output to a text file: using the gss data in this example. library(gss) library(infer) con <- file(paste0(dir_output, "test.txt"),encoding = "UTF-8") sink(con, split = T) cols <- gss %>% select(where(is.factor)) %>%…
NewBee
  • 990
  • 1
  • 7
  • 26
0
votes
1 answer

Flink Create new ObjectB Stream using List which is in another ObjectA stream

I have a SingleOutputStreamOperator objAStream and need to sink only the List list objects which are in ObjectA stream in to kafka. public class ObjectA { public int id; public List objBList; …
0
votes
1 answer

Azure Data Factory data flow writing to sink also creates an empty blob file

I'm new with Azure Data Factory and their data flows. I've created a data flow that compares existing and new data based on an md5hash and writes the inserts/updates to a parquet file in ADLS. However, when writing to the sink with folder path:…
anne
  • 3
  • 1
0
votes
1 answer

Wrong printing into .txt using sink()

I am trying to output some anova results from R into a textfile using the sink() command, but I am getting some weird symbols. This is the code: sink(file) print(title) print("SUMMARY STATISTICS") print("") print("Summary grouped by factor '…
Tamara
  • 21
  • 2
0
votes
2 answers

swiftui cannot change @State value in sink

i am learning swiftui now and I am newbie for stackoverflow, I find a question,this is my code. I want to change the @State nopubName in sink ,but it's not work,the print is always "Nimar", I don't know why struct ContentView: View { @State…
Chr1s78
  • 33
  • 1
  • 5
0
votes
2 answers

Elasticsearch field mapping is showing date for version field

I have recently setup a Kafka sink-connector to an Elastic pipeline and I noticed error in conversion of one field version which is definitely a text value. I checked the input format schema and I see it is being sent as text and I did not find any…
Learner
  • 1,544
  • 8
  • 29
  • 55
0
votes
1 answer

Sort the substrings of Timestamp column in azure data factory

enter image description hereMy question is , I have a file in .txt format where there is a column called Timestamp along with many other columns. Timestamp 01.06.2021 10:30:45...row 1 01.06.2021 10:40:45...row 2 01.06.2021 10:31:30...row 3 Now I…
0
votes
2 answers

R printing non-printable crayon color codes when printing to sink()

I have two Windows machines. Both Windows 10. When I run the following code on each, I get two very different outputs: library(tibble) sink(file.path(tempdir(), "test.log"), append = FALSE) print(as_tibble(mtcars)) sink() One machine…
David J. Bosak
  • 1,386
  • 12
  • 22