分布式计算(Distributed Computing)
我的朋友必须在工作中编辑很多视频,他一直在谈论他们如何让计算机有时一次超过一天。 上一份工作是在12核Mac Pro上进行40多个小时的渲染。
无论如何,我读了一些关于使用After Effects进行网络渲染的内容,它让我想起了什么时候我想要一些覆盆子pi来学习分布式计算的编程。
我的问题是:是否有任何项目/框架抽象“分布式”方面,以便设计单机使用的程序,如Premiere Pro,可以在分布式系统上运行? 例如,也许库,或者它是什么,使得单个节点看起来像所谓的程序作为线程,因此它不知道它在分布式系统上运行......?
对我来说这是一个新概念,如果我想象的是不可能的话,我现在不想深入研究这些东西。
My friend has to edit a lot of video at work and he's been talking about how they have to leave the computers to render sometimes for more than one day at a time. Last job was a 40+ hour render on a 12 core Mac Pro.
Anyway, I read a little about network rendering with After Effects, and it reminded me of when I was wanting to get some raspberry pi's to learn programming for distributed computing.
My question is this: are there any projects/frameworks that abstract the "distributed" aspect so that a program designed with single-machine use in mind, like Premiere Pro, can run on a distributed system? For example, maybe the library, or whatever it is, makes individual nodes appear to said program as threads, so that it doesn't know it's running on a distributed system...?
It's a new concept to me and I don't really want to dive into this stuff right now if what I'm imagining isn't possible.
原文:https://stackoverflow.com/questions/36349683
最满意答案
嗯,这看起来很明显,所以我可能会遗漏一些东西
javac -cp'。:/ home / myself / Downloads / testjavaapp / hppc-0.4.1.jar'* .java
编辑
是的,我错过的显而易见的是静态导入不适用于默认包。 这个错误报告讨论了为什么Java以这种方式行事,它最终被关闭为“不是缺陷” - 这就是Java的行为方式。 默认包只是有一些意想不到的行为,这是鼓励程序员从不使用默认包的原因之一。
Well, this seems pretty obvious, so I may be missing something
javac -cp '.:/home/myself/Downloads/testjavaapp/hppc-0.4.1.jar' *.java
Edit
Yes, the obvious I missed is that static imports don't work for default packages. This bug report has some discussion about why Java acts this way, and it was eventually closed as "not a defect" -- it's the way Java was designed to behave. Default package just has some unexpected behavior, and this is one of the reasons why programmers are encouraged to never used the default package.
相关问答
更多-
javac -cp /u/1/bin/javaLibraries/google-collect-1.0.jar Locate.java 或者,Java 6中的新功能,让它扫描目录 javac -cp '/u/1/bin/javaLibraries/*' Locate.java javac -cp /u/1/bin/javaLibraries/google-collect-1.0.jar Locate.java or, new in Java 6, just let it scan the di ...
-
路径'/Applications/Utilities/Terminal.app'是终端应用程序的路径,它是一个目录。 实际的可执行终端程序路径是: /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal 这是您在exec调用中需要的路径。 或者使用 open -n /Applications/Utilities/Terminal.app 命令。 The path '/Applications/Utilities/Terminal.app' ...
-
到达heroku app终端(Reach heroku app terminal)[2022-07-29]
您可以使用heroku命令创建一次性dyno来运行任意命令,如bash或rake db:migrate 。 例如, heroku run bash -a my-app将在一次性dyno上运行bash shell。 请注意,无法直接连接到Heroku上正在运行的dyno(例如通过ssh); 运行heroku run命令将创建一个新的临时dyno,您可以使用该代码使用已部署的代码版本来运行命令。 You can use the heroku command to create a one-off dyno to ... -
在终端中编译java app(Compiling java app in terminal)[2023-02-06]
嗯,这看起来很明显,所以我可能会遗漏一些东西 javac -cp'。:/ home / myself / Downloads / testjavaapp / hppc-0.4.1.jar'* .java 编辑 是的,我错过的显而易见的是静态导入不适用于默认包。 这个错误报告讨论了为什么Java以这种方式行事,它最终被关闭为“不是缺陷” - 这就是Java的行为方式。 默认包只是有一些意想不到的行为,这是鼓励程序员从不使用默认包的原因之一。 Well, this seems pretty obvious, s ... -
编译并运行Java应用程序(Compiling and running Java app)[2023-09-21]
运行它 java UploadFile 你没有cd进入src/net目录。 只要去src并且做 java net.UploadFile 您需要站在一个目录中,以便java可以找到net/UploadFile.class文件。 这里描述了“错误的名称 ”错误信息(以及它的原因)。 另请注意,通过-cp设置类路径是首选方式。 也就是说,试试 java -cp .:/home/ec2-user/staff/lib/aws-java-sdk-1.2.1.jar net.UploadFile 最后,混合.jav ... -
我相信android中的rm命令不接受选项-f 。 要确认它,请从命令行尝试不带-f的相同命令: rm -r /data/data/com.android.browser/app_databases/http_m.bing.com_0 问候。 I believe the option -f is not accepted by rmcommand in android. To confirm it, try from command line the same command without -f: rm ...
-
您可以查看Terminal IDE的文档 (稍微过时) - 文档 You might check this (slightly out of date) documentation for Terminal IDE -- documentation
-
从终端编译从另一个目录扩展父项的Java文件(Compile from terminal a Java file that extend a parent from another directory)[2022-05-10]
您应该尝试使用选项-cp或-d。 您需要指定父类路径和“Child.java”的路径。 You should try with the option -cp or -d. You need to specify both parent class path and path of "Child.java". -
我相信你不应该使用'class'作为变量名。 这是Java中的关键词。 I believe you should not use 'class' as a variable name. It's a key word in Java.
-
正如评论中所讨论的那样,将呼叫设置为 java -cp .:postgresql-9.4-1206-jdbc4.jar ~/test/JDBCExample 工作。 As discussed in the comments, setting up the call to be java -cp .:postgresql-9.4-1206-jdbc4.jar ~/test/JDBCExample worked.