首页 \ 问答 \ Spark Streaming和High Availability(Spark Streaming and High Availability)

Spark Streaming和High Availability(Spark Streaming and High Availability)

我正在构建作用于多个流的Apache Spark应用程序。

我确实阅读了文档的性能调优部分: http//spark.apache.org/docs/latest/streaming-programming-guide.html#performance-tuning

我没得到的是:

1)流媒体接收器是位于多个工作节点还是驱动程序机器?

2)如果接收数据的其中一个节点发生故障(断电/重启)会发生什么


I'm building Apache Spark application that acts on multiple streams.

I did read the Performance Tuning section of the documentation: http://spark.apache.org/docs/latest/streaming-programming-guide.html#performance-tuning

What I didn't get is:

1) Are the streaming receivers located on multiple worker nodes or is the driver machine?

2) What happens if one of the nodes that receives the data fails (power off/restart)


原文:https://stackoverflow.com/questions/39510381
更新时间:2022-01-23 20:01

最满意答案

实际使用的数据库不存储在APK中。 它需要在一个可写的位置。 通常它位于应用程序数据目录下的databases ,例如/data/data/package.name/databases

许多应用程序在代码中动态生成数据库。 某些应用程序在资产中附带预先填充的数据库,但即使他们需要在使用之前将其复制到可写位置。


Database that is actually used is not stored in the APK. It needs to be in a writable location. Canonically it's in databases under the application's data directory e.g. /data/data/package.name/databases.

Many apps generate their databases dynamically in code. Some apps ship with a pre-populated database in assets, but even they need to copy it to a writable location before using.

相关问答

更多
  • 当您在模拟器上运行项目时,APK文件将在bin目录中生成。 请记住,只是构建项目(而不是运行它)不会将APK文件输出到bin目录中。 When you run the project on the emulator, the APK file is generated in the bin directory. Keep in mind that just building the project (and not running it) will not output the APK file into ...
  • 其实我认为你没有签署你的应用程序。 要运行该应用,我们必须签署我们的应用程序。 你可以看到这些链接: http://developer.android.com/tools/publishing/app-signing.html 如何签署android apk文件 Actually you did not sign your app I think. To run the app , we have to sign our app . You can see these links: http://devel ...
  • 不,可悲的是你无法控制config.xml中的文件名,但文件名无关紧要。 在config.xml中,您可以指定应用的名称,因为它将显示给其移动设备上的用户,这是重要的。 如果您想为文件提供特定的文件管理名称(这也是我的做法),那么每次创建新文件时都必须手动重命名文件。 No, sadly you cannot control the file name in the config.xml, but the file name doesn't matter. In the config.xml, you sp ...
  • 也许Android库是你正在寻找的。 这是一个可以放置一些通用代码并将其包含在多个应用程序(apks)中的地方。 请参阅有关库项目的文档。 Perhaps an Android Library is what you are looking for. This is a place where you can put some common code and include it in multiple applications (apks). See this documentation on libra ...
  • 典型的文件系统(* nix,ms-dos等)按层次组织文件。 例如, c:\表示层次结构的顶部c:\ foo是层次结构中的下一层c:\ foo \ bar是\ foo等的子节点。 每个文件都存在于此层次结构中的一个且仅有一个位置中。 相比之下,数据库文件系统通过元数据属性来组织文件。 例如,主题,类型,作者等等。文件不是存在于层次结构中的某个特定位置,而是取决于其属性存在于多个“位置”中。 你问的最后一个问题是无法回答的。 Found some good links DBFS (This one is re ...
  • 如何为游戏制作两个单独的应用程序? 一个用于游戏代码,另一个用于大型资产。 原谅我的入侵。 I found that the installation problem happens only with ADB. By manually copying a big APK to the device external storage, and then installing using a file manager app, there is never a problem. Regarding the 2 ...
  • 1)你在这一行指的是哪个数据库: com.hazcheck.dgl.SearchActivity.afterTextChanged(SearchActivity.java:284) ? 相应的数据库是否存在? 您是否在OnCreate()方法中实例化/创建了数据库? 如果没有,那就是你的错误。 您可能已经在您的设备上测试了该应用,您只是第一次创建它; 即使您更换应用程序包,应用程序也会重新使用数据库。 2)关于“1错误报告,0安装”,这也发生在我的应用程序中。 可能更新安装次数的过程是定期的,而更新错误日志 ...
  • 实际使用的数据库不存储在APK中。 它需要在一个可写的位置。 通常它位于应用程序数据目录下的databases ,例如/data/data/package.name/databases 。 许多应用程序在代码中动态生成数据库。 某些应用程序在资产中附带预先填充的数据库,但即使他们需要在使用之前将其复制到可写位置。 Database that is actually used is not stored in the APK. It needs to be in a writable location. Ca ...
  • 第一种方式: 安装Adroid Stuido 安装SDK 在Android Studio中打开您的应用项目 单击:构建 - >生成签名APK。 创建新密钥。 单击:下一步 - >完成。 你将在project_folder \ app中拥有你的.apk 第二种方式(首选):要求您的开发者发送APK文件。 First way: Install Adroid Stuido Install SDK Open your app project in Android Studio Click: Build -> Gen ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。