微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Apache TIKA:无法建立新连接:[Errno 111]连接被拒绝

如何解决Apache TIKA:无法建立新连接:[Errno 111]连接被拒绝

Apacke Tika 1.24。

Tika在服务器模式下运行如下:

NA

我正在观察以下连接错误。我无法确定根本原因是什么。最初,我认为当多个客户端连接(python-tika)尝试使用同一台服务器时会发生这种情况,但是我不确定,因为我将同时运行的进程数减少到10,但仍然发生相同的问题。我在哪里可以找到解决方案?

library(dplyr)
library(purrr)

n <- 10

rerun(n,largetable %>% 
  group_by(PlotCode) %>% 
  slice_sample(n = 2,replace = TRUE) %>%
  count(PlotCode,Category)) %>%
  reduce(full_join,by = c('PlotCode','Category')) %>%
  rename_with(~paste0('n',seq_along(.)),starts_with('n')) %>%
  mutate(across(starts_with('n'),tidyr::replace_na,0))

#  PlotCode Category    n1    n2    n3    n4    n5    n6    n7    n8    n9   n10
#  <chr>    <chr>    <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#1 Plot1    A            1     0     2     2     0     1     0     1     2     2
#2 Plot1    B            1     0     0     0     1     1     2     1     0     0
#3 Plot2    B            1     0     0     0     1     0     0     0     0     0
#4 Plot2    C            1     2     0     0     0     0     1     1     0     0
#5 Plot1    C            0     2     0     0     1     0     0     0     0     0
#6 Plot2    A            0     0     2     2     1     2     1     1     2     2

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。