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
最满意答案
实际使用的数据库不存储在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.
相关问答
更多-
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
当您在模拟器上运行项目时,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 ...
-
安装.apk文件问题(Installing .apk file issue)[2022-04-26]
其实我认为你没有签署你的应用程序。 要运行该应用,我们必须签署我们的应用程序。 你可以看到这些链接: 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 APK在一个APK中?(android APK within an APK?)[2022-05-07]
也许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 ... -
什么是数据库文件系统?(What is a database file system?)[2022-07-10]
典型的文件系统(* nix,ms-dos等)按层次组织文件。 例如, c:\表示层次结构的顶部c:\ foo是层次结构中的下一层c:\ foo \ bar是\ foo等的子节点。 每个文件都存在于此层次结构中的一个且仅有一个位置中。 相比之下,数据库文件系统通过元数据属性来组织文件。 例如,主题,类型,作者等等。文件不是存在于层次结构中的某个特定位置,而是取决于其属性存在于多个“位置”中。 你问的最后一个问题是无法回答的。 Found some good links DBFS (This one is re ... -
大型APK文件的问题(Issues with large APK file)[2022-04-25]
如何为游戏制作两个单独的应用程序? 一个用于游戏代码,另一个用于大型资产。 原谅我的入侵。 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 ...